AnsweredAssumed Answered

applyEdit function for Delete

Question asked by ahramadhanesrisa-esridist Employee on Oct 21, 2015
Latest reply on Jan 31, 2017 by krobine

I have problem with my javascript code for Apply.edit here the code

 

delMaintData:  function(){

    console.log('Bri');

                var maintTable = new FeatureLayer(this.dataSelect.get("value"));

                console.log('layer',maintTable);

                var delrecord = this.OBJECTID.get('value');

                console.log(delrecord);

                maintTable.applyEdits( null, null, delrecord, function(delrecord){

                    //readTable(dijit.byId('assetId').get('value'));

                    //dijit.byId('dialogAsset').hide();

                    console.log(delrecord);

                });

 

        }

 

Until this code console.log(delrecord); , the code still working properly that will produce the object id to delete

But  on console.log(delrecord); will produce Undefined that means unable to complete operation. Anything problem or are there anything mistakes ?

Please help me. Thanks

Outcomes