Select to view content in your preferred language

select in attribute table widget

1089
9
01-07-2013 09:37 AM
PeterHoffman
Deactivated User
I cannot seem to get a select feature to work in the new attribute table widget. I can get the attributes to appear in the table and edit them but I cannot select on the map. Am I missing something?
Tags (2)
0 Kudos
9 Replies
SarthakDatt
Frequent Contributor
Hey Peter,

Are you trying to select feature(s) by clicking on a row in the Attribute Table component or you want to click on the feature on the map, thereby selecting it and highlighting the same in the component?
0 Kudos
PeterHoffman
Deactivated User
I am trying to click on the feature on the map.
0 Kudos
SarthakDatt
Frequent Contributor
The AttributeTable component is implemented in a way that it reacts to selection on the feature layer. The feature(s) need to be explicitly selected as there is no such behavior built into the Viewer.

See:
http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/layers/FeatureLayer.html#selectFeat...

You can look at this api sample as well:
http://resources.arcgis.com/en/help/flex-api/samples/index.html#/AttributeTable/01nq00000089000000/
0 Kudos
PeterHoffman
Deactivated User
In other words I would have to modify the code to allow selection of the feature?
0 Kudos
SarthakDatt
Frequent Contributor
Yes.

There's another way, where if you have the Edit widget open alongside, it gives the capability of clicking on a feature and selecting it.
0 Kudos
PeterHoffman
Deactivated User
I do not want to use the edit widget as it allows moving the selected feature, I just want to edit the attributes.
0 Kudos
SarthakDatt
Frequent Contributor
You can set <updategeometry> to false in Edit widget's config:

<?xml version="1.0" ?>
<!-- If compiling this widget, make sure to add -keep-all-type-selectors=true to your compiler arguments in the FB project properties. -->
<configuration>
    <createoptions>
        <polygondrawtools>polygon,freehandpolygon,extent,autocomplete</polygondrawtools>
        <polylinedrawtools>polyline,freehandpolyline,line</polylinedrawtools>
    </createoptions>
    <addfeatures>true</addfeatures>
    <deletefeatures>true</deletefeatures>
    <toolbarvisible>true</toolbarvisible>
    <toolbarcutvisible>false</toolbarcutvisible>
    <toolbarmergevisible>false</toolbarmergevisible>
    <toolbarreshapevisible>false</toolbarreshapevisible>   
    <updategeometry>false</updategeometry>
    <updateattributes>true</updateattributes>    
</configuration>
0 Kudos
PeterHoffman
Deactivated User
I have another thread for this issue in the edit widget:
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
SarthakDatt
Frequent Contributor
Right now there isn't a way to do that per layer. Its all or none as it applies to the Editor component.

The only solution that I can think of right now is that if you are using a 10.1 service, you can publish it in a way where geometry updates are disabled.

See:

http://resources.arcgis.com/en/help/main/10.1/index.html#//015400000393000000
0 Kudos