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?
<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?