Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. bosAppModule.controller("module-menu-controller", function($scope, $compile, $http, layoutRenderingDataFactory) {
  2. $scope.transactionalData={};
  3. $scope.transactionalData.Data={"entityinfo":{"entity":"","tenantId":"292FEC76-5F1C-486F-85A5-09D88096F098","timeStamp":"2015-12-15T10:16:06.322Z"},"collections":{}};
  4. });
  5.  
  6. {
  7. "entityinfo": {
  8. "entity": "Customer29Jan16",
  9. "tenantid": "292FEC76-5F1C-486F-85A5-09D88096F098",
  10. "timestamp": "2015-12-15T10:16:06.322Z"
  11. },
  12. "collections": {
  13. "customer29jan16": {
  14. "rowset": [
  15. {
  16. "cuid": "6293f82f-d202-45c0-9a7b-46cd955361a3",
  17. "name": "test",
  18. "quantity": "60",
  19. "rate": "60",
  20. "amount": "3600"
  21. }
  22. ],
  23. "meta": {
  24. "parentreference": "***",
  25. "pkname": "***",
  26. "fkname": "***"
  27. },
  28. "rowfilter": []
  29. },
  30. "customer29jan16obj": {
  31. "rowset": [
  32. {
  33. "cuobjid": "83bfc652-9f83-47d3-b173-b1a824ff3bed",
  34. "fulladdress": "Electronic City",
  35. "objaddr": "Bangalore",
  36. "objname": "Testing",
  37. "customer29jan16objcuid": "6293f82f-d202-45c0-9a7b-46cd955361a3"
  38. }
  39. ],
  40. "meta": {
  41. "parentreference": "***",
  42. "pkname": "***",
  43. "fkname": "***"
  44. },
  45. "rowfilter": []
  46. }
  47. }
  48. }
  49.  
  50. // get the scope of module and menu controller
  51. var moduleMenuControllerScope = angular.element("[ng-controller=module-menu-controller]").scope();
  52.  
  53. // clear the crudObject
  54. moduleMenuControllerScope.transactionalData.Data.collections = {};
  55. moduleMenuControllerScope.$digest();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement