Select to view content in your preferred language

Delete last feature from a feature service with explicit save

427
2
10-29-2013 01:59 AM
mahamohsen
Deactivated User
Try to delete the last feature in a feature map service, then pan map.. you will find the feature appear again

To reproduce the case, please :

  -open http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave

  -make sure that used feature service has only one feature
  [query: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer...

  -select this feature , then click delete selected

  -pan map

  ----> you can see the deleted feature appeared on map !

when we save, the feature become deleted.. but the issue is user can see deleted feature in feature service until he save which is confusing

thanks
0 Kudos
2 Replies
JohanCarlsson
Regular Contributor
Have you tried this?
0 Kudos
mahamohsen
Deactivated User
yes ...

and in the mentioned sample they use DisableClientCaching

<esri:FeatureLayer ID="ThreatAreas" 
                               Url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer..."                 
                               AutoSave="False"
                               Mode="OnDemand"
                               ValidateEdits="True"
                               DisableClientCaching="True" />

this issue happens only while deleting last feature in a feature layer
0 Kudos