Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bosAppModule.controller("module-menu-controller", function($scope, $compile, $http, layoutRenderingDataFactory) {
- $scope.transactionalData={};
- $scope.transactionalData.Data={"entityinfo":{"entity":"","tenantId":"292FEC76-5F1C-486F-85A5-09D88096F098","timeStamp":"2015-12-15T10:16:06.322Z"},"collections":{}};
- });
- {
- "entityinfo": {
- "entity": "Customer29Jan16",
- "tenantid": "292FEC76-5F1C-486F-85A5-09D88096F098",
- "timestamp": "2015-12-15T10:16:06.322Z"
- },
- "collections": {
- "customer29jan16": {
- "rowset": [
- {
- "cuid": "6293f82f-d202-45c0-9a7b-46cd955361a3",
- "name": "test",
- "quantity": "60",
- "rate": "60",
- "amount": "3600"
- }
- ],
- "meta": {
- "parentreference": "***",
- "pkname": "***",
- "fkname": "***"
- },
- "rowfilter": []
- },
- "customer29jan16obj": {
- "rowset": [
- {
- "cuobjid": "83bfc652-9f83-47d3-b173-b1a824ff3bed",
- "fulladdress": "Electronic City",
- "objaddr": "Bangalore",
- "objname": "Testing",
- "customer29jan16objcuid": "6293f82f-d202-45c0-9a7b-46cd955361a3"
- }
- ],
- "meta": {
- "parentreference": "***",
- "pkname": "***",
- "fkname": "***"
- },
- "rowfilter": []
- }
- }
- }
- // get the scope of module and menu controller
- var moduleMenuControllerScope = angular.element("[ng-controller=module-menu-controller]").scope();
- // clear the crudObject
- moduleMenuControllerScope.transactionalData.Data.collections = {};
- moduleMenuControllerScope.$digest();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement