Select to view content in your preferred language

disable spatial changes in edit widget

682
4
01-09-2013 06:27 AM
PeterHoffman
Occasional Contributor
I have an existing layer that I want the user to just add or change text in a comments for for that polygon. I do not want the ability to edit in any way the spatial features. Is this possibble in the current edit widget?
I have tried the new attribute widget and it does not work as needed.
Tags (2)
0 Kudos
4 Replies
AnthonyGiles
Frequent Contributor II
Peter,

You should be able to set the <updategeometry> tag to false and the <addfeatures> tag to false in the edit widget config file, see:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Edit_widget_tags/01m30000000v00...

Regards

Anthony
0 Kudos
PeterHoffman
Occasional Contributor
What I need is to set this layer specific. I want to limit editing one layer just to attributes. I have other layers that I need full editing.
0 Kudos
AnthonyGiles
Frequent Contributor II
Peter,

Unfortunately I think its all or none, sorry.

Regards

Anthony
0 Kudos
PeterHoffman
Occasional Contributor
I got my desired functionality by creating a second editwidget.xml file that disables update, delete or features, etc. I also excluded the other 6 feature layers.
The other editwidget.xml excludes that one layer and allows all of the feature editing.
0 Kudos