Select to view content in your preferred language

How to enable delete,update operation in feature service?

760
2
12-03-2013 03:51 AM
AnatoliiTerentiev
Deactivated User
Dear Gurus!
I have published map service with feature access (
allowed operation - Create, add, delete, query
).
But when I see the property of feature service through access via url , I see only :
Supported Operations:   Query   Generate Renderer   Return Updates

In the live example of EditorWidget I see:
Supported Operations:   Query   Add Features   Update Features   Delete Features   Apply Edits

How I can to improve situation?
Tags (2)
0 Kudos
2 Replies
DanielStauning
Esri Contributor
Anatolli,

If your feature service is published to ArcGIS Server, you can reference the following document; under the feature access tab, make sure that create and delete are checked:
http://resources.arcgis.com/en/help/main/10.1/index.html#//00sq0000009r000000

If it's a hosted feature service (published to the ArcGIS Online cloud), you'll have to edit the supported operations in the item description of the service when logged into ArcGIS Online. You can always check which operations are allowed by checking the REST endpoint of the service, scroll to the bottom and see what is listed under supported operations.

Hope this helps,

- Daniel
0 Kudos
AnatoliiTerentiev
Deactivated User
Solution here:
http://forums.arcgis.com/threads/980...et-are-visible
You will have to see the feature server for the layer to see the operations like create, delete etc. The rest endpoint link posted is for the mapserver which doesn't have those operations on it. Take a look at the sample services for reference

http://sampleserver6.arcgisonline.co...F311/MapServer

http://sampleserver6.arcgisonline.co.../FeatureServer


Now for url
http://terentievai:6080/arcgis/rest/...eatureServer/0
I see
Supported Operations: Query Apply Edits Add Features Update Features Delete Features Generate Renderer Return Updates
But
1. When I add or edit features the data is not saved.
2. When editing newly added data editor window closes and disappears, data not saved.
When editing data existing in the geodatabase - changes are not saved and the window closes. OK button - becomes inactive, the Delete button - active
What could be wrong?
PS. Delete operation is performed normally (in geodatabase too).
But if I view my feature layer in  ArcGIS.com Map - all works normally,
edited changes are saved in my geodatabase.
0 Kudos