Select to view content in your preferred language

How to modify the edit widget

1748
3
10-12-2010 06:47 AM
SimonMorgan
Frequent Contributor
Can someone please help me modify the edit widget. I would like to make it so that for some applications is ONLY an attribute inspector. I would also like to make it so that for some applications it does NOT give a user te ability to view/edit attachments. If I could set this up to configurable through the config fiel great, but having three seperate wdgets would okay. I jus need help getting started.
Tags (2)
0 Kudos
3 Replies
SarthakDatt
Frequent Contributor
Hey Simon,

The Edit Widget is built on top the out-of-box Editor component, which has the template picker and the attribute inspector by default.

If you want to have just the attribute inspector, then you could base your widget on following samples:

- http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=AttributeInspectorInfoWindowViewonly

- http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=AttributeInspectorInfoWindowEditable

The Attachment inspector(for viewing/editing attachments), is not part of the Editor component, hence can be easily removed from the Edit Widget. You can do that by removing the "AttachmentInspectorContainer"(line 342) and related code. This could be made configurable.

Hope that helps.
0 Kudos
JHayes
by
Frequent Contributor
Sarthak,

Can you insert the Attribute Editor into the ArcGIS Viewer for Flex 2.1 app?  If so, can you direct me on where to get that information.

Thanks,
Joe
0 Kudos
JHayes
by
Frequent Contributor
Sarthak,

Can you insert the Attribute Editor into the ArcGIS Viewer for Flex 2.1 app?  If so, can you direct me on where to get that information.

Thanks,
Joe
0 Kudos