i have problem with my json of delete feature form Applyedit Jason on the arcgis server Json. Here my code.
delMaintData: function(){console.log('Bri'); var maintTable = new FeatureLayer(this.dataSelect.get("value")); console.log('layer',maintTable); var deletesrecord = this.OBJECTID.get('value'); console.log(deletesrecord); maintTable.applyEdits( null, null, [deletesrecord], function(deleteResults){ //readTable(dijit.byId('assetId').get('value')); //dijit.byId('dialogAsset').hide(); console.log(deleteResults); }); },i have [deletesrecord] to define the object id and i get the number from console.log(deletesrecord); , and after the code in maintTable.applyEdits , there are log error
Uncaught TypeError: Cannot read property 'undefined' of undefined
please help me to solve this problem.
أكثر...
delMaintData: function(){console.log('Bri'); var maintTable = new FeatureLayer(this.dataSelect.get("value")); console.log('layer',maintTable); var deletesrecord = this.OBJECTID.get('value'); console.log(deletesrecord); maintTable.applyEdits( null, null, [deletesrecord], function(deleteResults){ //readTable(dijit.byId('assetId').get('value')); //dijit.byId('dialogAsset').hide(); console.log(deleteResults); }); },i have [deletesrecord] to define the object id and i get the number from console.log(deletesrecord); , and after the code in maintTable.applyEdits , there are log error
Uncaught TypeError: Cannot read property 'undefined' of undefined
please help me to solve this problem.
أكثر...