Select to view content in your preferred language

EditWidget - Edit Attibutes Only

420
2
09-03-2011 11:12 AM
robdunfey1
Emerging Contributor
Hi,

I have a base layer of information, I would like users to populate the attribute information for each of the features in the layer.  I don't want the user to be able to add features or delete features, just edit attributes of features exposed in the layer I share using the flex viewer.

When a user clicks a feature, I want the widget window to provide labels and text boxes for each of the attributes, then they enter details for that feature and click save.

I have tried to modify the Edit widget XML file with a few suggestions I have seen on the forum and can't seem to get near what I'm after.  I wanted to ask if this has already been develeoped?  I didnt see it in the list of widgets from ESRI, or the code gallery - but I think its quite a common workflow (e.g. the JavaScript API has the notion of an attribute inspector which works this way), just wanted to make sure I haven't missed it?

Kind Regards,

Rob
Tags (2)
0 Kudos
2 Replies
BjornSvensson
Esri Regular Contributor
I don't want the user to be able to add features or delete features, just edit attributes of features exposed in the layer I share using the flex viewer.
...
I have tried to modify the Edit widget XML file with a few suggestions I have seen on the forum and can't seem to get near what I'm after. 


Hi Rob, did you try the tags described in the Edit Widget documentation?

Maybe a combination of <addfeatures>, <deletefeatures>, <updateattributes> and <updategeometry> would work for you?

<addfeatures>false</addfeatures>
<deletefeatures>false</deletefeatures>
<updateattributes>true</updateattributes>
<updategeometry>false</updategeometry>

http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Edit_widget/01m30000000v000000/
0 Kudos
robdunfey1
Emerging Contributor
Hi Bjorn,

thanks for the response, that helps, I can now edit the attributes. I don't know the road map for the flex viewer, but it would be great if I could change the label on the legend so that it doesn't prompt users to create features, and ideally hide the legend when editing attibutes only, also the ability to hide the fields displayed for editing would be good.  I have a feeling we may end up creating our own edit attibutes inspector, many thanks,  rob
0 Kudos