Select to view content in your preferred language

Attribute Table only displaying one field

584
1
03-21-2014 10:16 AM
KeithWeber1
Deactivated User
I have setup a map service for a polyline layer that has many fields, but when I attempt to show the attribute table in my flex web application, it only displays whatever field is set as the 'display field'. When I view the description of the service by accessing the rest api by going to http://server:port/arcgis/rest/services/myMap/MapServer/0 I see that all the fields are available through the service. Any suggestions?



<esri:FeatureLayer id="displayLayer" 
name="My Layer" 
url="http://server:port/arcgis/rest/services/myMap/MapServer/0"/>

<esri:AttributeTable id="myAttributeTable" width="100%" height="100%" 
featureLayer="{displayLayer}"
name="Attribute Table" /> 

Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Keith,

   You need to add outfields to your featurelayer.

<esri:FeatureLayer id="displayLayer"  name="My Layer" outFields="*"  url="http://server:port/arcgis/rest/services/myMap/MapServer/0"/> 
0 Kudos