1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.