AnsweredAssumed Answered

Start/stop edit layers

Question asked by pchapuis on Dec 6, 2012
Latest reply on Mar 22, 2017 by clopez0
ArcGIS for Server 10.1
ArcGIS API for JavaScript 3.2


I need to start and stop editing layers. In my application, I can show and hide the editor widget (esri.dijit.editing.Editor) but, after has been started the first time, I cannot stop to edit features.

Here, the using process:
1- start editor
2- click on a feature : I got a popup and I can edit the geometry (vertices, size, ...)
3- stop editor
4- click on a different feature (or the same one), I can still edit the geometry.

Here, the ways to correct it I tried:
- layer.setEditable(false) => "FeatureLayer:setEditable - this functionality is not yet supported for layer in a feature service"
- destroy the editor or the template picker by using many ways  => inefficient
- start/stop the editor object => no way to do (activate/deactivate method don't exist)

Any idea?