Select to view content in your preferred language

New Attribute Table Widget

6905
20
12-18-2012 06:29 PM
ShaunWeston
Frequent Contributor
Stuggling to get this new widget to work. I'm finding if I specify in the config something like this:

<layer label="Boundaries" url="http://testserver/arcgis/rest/services/Boundaries/Boundaries/MapServer/0"></layer> <!-- non-mapped layer(s), added for just this widget -->

It works and show all features, but doesn't update when you pan to a new extent and if I set the config like this:

  <layersettings>
     <layer name="Boundaries"> <!-- Overwriting layer settings for a map service layer -->
         <sublayer id="0" iseditable="false"> <!-- is editable only supported for a sub layer within a map service layer -->
             <fields>
                 <field name="objectid" alias="ObjectID"/>                  
             </fields>
             <showobjectid>false</showobjectid>
             <showglobalid>false</showglobalid>
             <exportlocation>true</exportlocation>         
             <showattachments>false</showattachments>
             <showrelatedrecords>false</showrelatedrecords>
             <columnsorder>alphabetical</columnsorder>    
         </sublayer>
     </layer>    
  </layersettings>

The above references a map service like this in my main config file:

             <layer label="Boundaries" type="dynamic" visible="false" alpha="1.0"
             url="http://testserver/arcgis/rest/services/Boundaries/Boundaries/MapServer"/>

It doesn't work at all. What am I doing wrong and how can I set this attribute table to work with map services I have defined in the main config file?
Tags (2)
0 Kudos
20 Replies
xanderm
Regular Contributor
Yes, make sure the dynamic map service has visible=true. The AT widget will only add tabs for visible layers(applies for feature layers as well) In the sample config I posted you can change visible=true on PoolPermits to see AT widget including the feature layers.

The way configuring AT widget in AppBuilder works is that by default it shows you all the possible layers the widget would add, by unchecking the checkboxes it would actually write out <excludelayer> tag to the widget config. At 3.1 we added a way where you can exclude layers within mapservice as well: <excludelayer>mapservicename/sublayerid<excludelayer>




Is <excludelayer>mapservicename/sublayerid</excludelayer> supported at 3.4?
0 Kudos