Select to view content in your preferred language

Using the Attribute Inspector example in the ArcGIS Flex Viewer - newbie question....

2887
8
Jump to solution
01-17-2012 07:49 AM
AndyPeterson
Emerging Contributor
Hello -

I've been working with the new ArcGIS Flex viewer (2.5) and am trying to implement the new editing widget. I've got it working, but I do not want our web editors to be able to add or delete features ??? I only want them to simply update attribute information.

I saw the Attribute Inspector Edit sample in the Flex API and have been fiddling around with changing services etc with some success. But how can I take this sample from the API (actually ANY sample) and add it to the sample flex viewer? Do you simply copy and paste them into a new folder under widgets and then compile the mxml? I've been struggling with this ??? not knowing how to call it from the config.xml file, especially if there isn't an .xml etc.

If I can't add API examples to the Sample Flex Viewer, is there a way to modify the Edit Widget to let users --

1. select points by an attribute,
2. have the feature selected and the attributes display, and
3. allow the user to edit the attribute information but not delete/add a point?

(I also noticed in the Sample Flex View under the Edit widgets folder a skin for the AttributeInspectorEditor.  What are these all being used for?).

Thanks in advance ??? I'm hoping to learn from this - it's a little overwhelming at first!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Andy,

   First things first. You should post Flex Viewer and/or Widget questions to the Flex Viewer forum:
http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex

You can configure the edit widget to only allow attributes to be updated. All the info you need can be found here:

http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Edit_widget_tags/01m30000000v000000/GU...

Don't forget to click the top arrow (promote) and to click the Mark as answer check as shown below:

View solution in original post

0 Kudos
8 Replies
IvanBespalov
Frequent Contributor
AndyP100,

1
Edit widget in ArcGIS Flex Viewer 2.5 is customizable.

Widget configuration file has <addfeatures> tag, where you can set new features creation permition.
Widget configuration file has <deletefeatures> tag, where you can set features deleting permition.

You can extend it adding query by attribute ( use forum search to find topics about it ). Set your query result as selected feature for editor.attributeInspector.

2
New widget creation is documented here.
Create widget
     -> add it as Flex module in application properties
          -> describe widget in config.xml file
               -> put UI in <WidgetTemplate> tag of created widget.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Andy,

   First things first. You should post Flex Viewer and/or Widget questions to the Flex Viewer forum:
http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex

You can configure the edit widget to only allow attributes to be updated. All the info you need can be found here:

http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Edit_widget_tags/01m30000000v000000/GU...

Don't forget to click the top arrow (promote) and to click the Mark as answer check as shown below:
0 Kudos
AndyPeterson
Emerging Contributor
Thank you for the help! I'll take a look and next time post in the right location to begin with.
0 Kudos
AndyPeterson
Emerging Contributor
Robert and Ivan - Thanks for your help in getting me on the right track re: the sample viewer editing widget and editing ONLY attributes.

I'm looking for advice on how to proceed. My data has overlapping points with the same "unique" code and differing attributes. (At one point this data used to be related to table via a one-to-many relationship, then was combined into one file with these overlapping occurrances).  So there are cases for example, where there are three overlapping points with unique code values of "1234" for example, but then differing additional attribute data.  See:

Point         Type
1234          Faucet
1234          Valve
1234          Hookup


I got the editing attributes only option to work no problem following your suggestions below, but when I select all three points, I'm only able to see one record of information in the popup box. Is there a way to scroll through to the other selected points underneath? If not, I can revert the data back to a one-to-many relationship so long as there is an option for editing related tables within the FlexViewer.

Any suggestions on which way to go?
0 Kudos
R__CraigHolmes
Emerging Contributor
Did you find a solution to this Andy? I'm in the same boat...multiple overlapping features or edit relates
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Craig & Andy,

   This should not be an issue in 3.0 of the viewer and the API.
0 Kudos
R__CraigHolmes
Emerging Contributor
I gave it a go..thanks Robert, still no scroll in the edit widget for coincident geometries.
0 Kudos
AndyPeterson
Emerging Contributor
Did you find a solution to this Andy? I'm in the same boat...multiple overlapping features or edit relates


Hi Craig - I wound up cleaning up our point data so there was just one location (no overlaps) and then doing a 1:M relate to the table. Was the only way I could figure out how to handle seeing the additional attributes. Hope it's worked out for you!
0 Kudos