Select to view content in your preferred language

esri:Editor edit template case handling

798
2
03-02-2012 10:43 AM
TylerWaring
Frequent Contributor
Greetings Everyone,

I am creating an edit widget and would like to extend different editing capabilities to different feature layers. I have two layers that I would like to create and modify features and attributes for. I also have a third layer that I would like to allow the user to only edit the attributes for. For consistency sake I would like the user to be forced to select and activate the feature template of the layer that they are modifying. Is this level of control available in the esri:Editor class? Any pointers or thoughts on how I could achieve this would be greatly appreciated.

Thanks,

Tyler Waring
Tags (2)
0 Kudos
2 Replies
BjornSvensson
Esri Regular Contributor
Yes, the Editor class can support that set of scenario.

Once they've decided which layer to edit, you would set Editor.featureLayers to the layer in question, and set up the editing permissions appropriately using Editor.addEnabled, Editor.deleteEnabled and Editor.updateGeometryEnabled.

If you're using ArcGIS 10.1 the editing permission can be defined when publishing the service (instead of client-side with the Editor*Enabled properties).
0 Kudos
RavindraSingh
Frequent Contributor
Hi,

I want to enable user just to add new feature with attributes. but at the same time i want that user should not able to delete and update the existing feaures in a feaure service.
How can i achieve this objective, please help.

I am using this to develop Disaster management application.

2>  what is the difference between:
FeatureLayerEvent.SELECTION_COMPLETE
FeatureLayerEvent.EDITS_COMPLETE

how can i use them to achieve this objective.
0 Kudos