Select to view content in your preferred language

SelectionOnly mode not working

2006
2
07-01-2011 07:54 AM
AnthonyGrescavage
Occasional Contributor
I have a set of two layers in my map, similar to the "Selection" example.  When in SelectionOnly mode, no features are returned upon selection.  In any other mode, any method of selection works just fine.  Am I missing something?  Is there anything specific to selectiononly mode with proxy pages that I need to know?  I can't figure out why this is not working.  Note that I am currently using the EditorWidget, though I saw the same behavior using the Editor tool.  In other modes, I had it working with LayerIds set to the layer I wish to select or not specified at all.

I have tried adding the layers from the online selection example and that works just fine.

The layers are as follows:

                    <esri:ArcGISDynamicMapServiceLayer ID="Road Data"
                        ProxyURL="{StaticResource myProxyUrl}"
                        InitializationFailed="showLayerLoadFailedMessage"
                        Initialized="DynamicMapServiceLayer_Initialized"
                        Url="http://thesiteIamUsing.com/ArcGIS/rest/services/TheService/MapServer"/>

                    <esri:FeatureLayer ID="Some Layer"
                        ProxyUrl="{StaticResource myProxyUrl}"
                        Url="http://thesiteIamUsing.com/ArcGIS/rest/services/TheService/FeatureServer/1"
                        Mode="SelectionOnly"
                        Renderer="{StaticResource YellowMarkerRenderer}"
                        Visible="True"
                        OutFields="*" />
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
Thank you for reporting this bug. Editor.Select does not currently include support for ProxyUrl or Token.
What you can do is create a SpatialQuery and set query.ProxyUrl to your featureLayer.ProxyUrl. You can refer to this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery
0 Kudos
AnthonyGrescavage
Occasional Contributor
Are there any plans to support this scenario moving forward?
0 Kudos