Select to view content in your preferred language

Problems with editing a feature layer in selection mode

619
0
07-27-2012 10:27 AM
JustinAnderson
Emerging Contributor
Hi All,

I have a feature layer available in selection mode that I am editing as well as a mapservice that represents the
same data - very similar to the sample @:  http://help.arcgis.com/en/webapi/javascript/arcgis/demos/ed/ed_selectionmode.html

I'm using the template picker and the attribute inspector, so both spatial and attribute editing is required.

It seems that the selected feature does not "unselect" (featureservice graphics remains visible even after edit session is closed)  and the mapservice version of the feature is not displayed until the entire application is refreshed (page is reloaded).  I've refreshed my mapservice in the code (mapservice.refresh), and added a featurelayer.clearselection call. However, the map service version of the feature still doesn't display. 
If I remain in the editing session and create a new feature, the previous edited feature displays as it should (map service symbol not as feature service graphic).
So, it seems that with each feature edit, I'm never getting to a state where the feature service
knows that the edits are complete (unless I move on to editing a new feature).

Any help with this would be awesome.

Thanks,
Justin
0 Kudos
0 Replies