AnsweredAssumed Answered

callback for applyEdits not working

Question asked by kait_davis on Jan 14, 2014
Latest reply on Feb 18, 2014 by kait_davis
I added a 'save' button to my attribute inspector, and upon clicking it I'd like for the feature layer to update and then close the info window (a similar effect to when you hit the attribute inspector's 'delete' button). I followed the documentation (https://developers.arcgis.com/en/javascript/jsapi/featurelayer.html#applyedits)and came up with the following statement:

updateFeature.getLayer().applyEdits(null, [updateFeature], null, function(){  map.infoWindow.hide();         });


The update is fine but the callback does not occur. The syntax looks correct to me, I don't see the need to supply any arguments to the callback, so I don't know what the problem could be

Outcomes