Select to view content in your preferred language

Sub-layers are not available to the Attribute Table widget

1068
2
Jump to solution
03-11-2013 02:00 PM
ScottMcGee
Regular Contributor
I have a dynamic Map Service that contains these sub-layers:

Surface Estate Land Status        (sublayer id="0")
Subsurface Estate Land Status   (sublayer id="1")
Easements                              (sublayer id="2")

Here's the code for them in my main config.xml file:

[PHP]<operationallayers>
  <layer
        type="dynamic"
        label="Land Status"
        alpha="0.5"
        imageformat="png8"
        url="http://ifw7rosde/arcgis/rest/services/Land_Status_Mapper/Land_Status/MapServer"
        visible="true">
    <sublayer id="0" popupconfig="popups/PopUp_24.xml"/>
    <sublayer id="1" popupconfig="popups/PopUp_25.xml"/>
    <sublayer id="2" popupconfig="popups/PopUp_26.xml"/>
  </layer>[/PHP]


All three sub-layers are visible in my map and I haven't experienced any problems with them, until now.

On the Layout tab of the Flex Application Builder, I turned on the Attribute Table widget and clicked the button to edit it. Here's the dialog box that pops up:

[ATTACH=CONFIG]22523[/ATTACH]

The problem is that it shows only one of the three sub-layers that are in my dynamic map service. It shows only the Easements sub-layer (sublayer iid="2").

I need to have the other two layers (Surface [id="0"] and Subsurface [id="1"]) in the attribute table as well, but since they are not shown in the dialog box I cannot add them to the attribute table.

Does anyone have an idea why all three of my sub-layers are not shown in the dialog box?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RhettZufelt
MVP Notable Contributor
Not sure, but I'll wager a guess.

Since the Attribute Table widget does not support MapServices and only FeatureService, I would guess that perhaps you have an actual FeatureServer service for the Easements and not for the other layers?

Good info in this thread that might help:  http://forums.arcgis.com/threads/73842-New-Attribute-Table-Widget?p=271360#post271360

R_

View solution in original post

0 Kudos
2 Replies
RhettZufelt
MVP Notable Contributor
Not sure, but I'll wager a guess.

Since the Attribute Table widget does not support MapServices and only FeatureService, I would guess that perhaps you have an actual FeatureServer service for the Easements and not for the other layers?

Good info in this thread that might help:  http://forums.arcgis.com/threads/73842-New-Attribute-Table-Widget?p=271360#post271360

R_
0 Kudos
ScottMcGee
Regular Contributor
Yes, you guessed correctly. It turns out that the two sub-layers that were not available for me to use in the attribute table were symbolized by a combination of two fields in my MXD. The Attribute Table widget requires that the Feature Access capability be enabled in the map service that contains the sub-layers you want to see in the attribute table. But the Feature Access capability is not available for features that have been symbolized using multiple fields.

So, if I want to use the Attribute Table widget, the only thing I can do is reorganize how I publish my layers and how those layers are symbolized. The end result is that I'll have to go from one map service with three sublayers, to three services and nine sublayers. All because the multiple-field renderer is not supported by the Feature Access capability. That's too bad.
0 Kudos