<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get the fields in a layer with a ArcGISDynamicMapServiceLayer in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-the-fields-in-a-layer-with-a/m-p/230679#M5932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I suggest you create a FeatureLayer, call initialize, and on initalize grab the info from the layer (no need to add the featurelayer to the map).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jan 2011 17:23:00 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2011-01-11T17:23:00Z</dc:date>
    <item>
      <title>How to get the fields in a layer with a ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-the-fields-in-a-layer-with-a/m-p/230676#M5929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I use a legendcontrol with ArcGISDynamicMapServiceLayer and each layer (LayerItemViewModel object) has no information on the fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I want to know how to get the field list of layers contained in a DynamicLayer. Or how to get the FeatureLayerInfo of each layer in a dynamiclayer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 13:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-the-fields-in-a-layer-with-a/m-p/230676#M5929</guid>
      <dc:creator>SebastienPelletier</dc:creator>
      <dc:date>2011-01-11T13:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the fields in a layer with a ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-the-fields-in-a-layer-with-a/m-p/230677#M5930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The ArcGISDynamicMapServiceLayer has Layers property, which gives you some information about the sublayers.&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~Layers.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~Layers.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get fields of each specific sublayer, you will need to perform a query on each sublayer with OutFields = "*", the query URL can be formed by appending the layer.Url and the sublayer.ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or use the query URL and parse the JSON to get "fields" value, similar approach as in the following thread except look at the sub layer's "fields" section &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/17362-how-to-query-map-knowing-map-layer-name-(not-id)"&gt;http://forums.arcgis.com/threads/17362-how-to-query-map-knowing-map-layer-name-(not-id)&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 14:11:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-the-fields-in-a-layer-with-a/m-p/230677#M5930</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-01-11T14:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the fields in a layer with a ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-the-fields-in-a-layer-with-a/m-p/230678#M5931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to create a form "Select by Attributes" and I need the fields before creating the query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; As the following site:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://phldemo.esri.com/SilverlightViewer2/default.aspx?theme=AliceBlue"&gt;http://phldemo.esri.com/SilverlightViewer2/default.aspx?theme=AliceBlue&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 14:17:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-the-fields-in-a-layer-with-a/m-p/230678#M5931</guid>
      <dc:creator>SebastienPelletier</dc:creator>
      <dc:date>2011-01-11T14:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the fields in a layer with a ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-the-fields-in-a-layer-with-a/m-p/230679#M5932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I suggest you create a FeatureLayer, call initialize, and on initalize grab the info from the layer (no need to add the featurelayer to the map).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 17:23:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-the-fields-in-a-layer-with-a/m-p/230679#M5932</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2011-01-11T17:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the fields in a layer with a ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-the-fields-in-a-layer-with-a/m-p/230680#M5933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcGISDynamicMapServiceLayer does not give you the fields for its sublayers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can create a FeatureLayer for every sublayer, if you want or parse the JSON to get "Fields" information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer has LayerInfo.Fields property &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureService.FeatureLayerInfo~Fields.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureService.FeatureLayerInfo~Fields.html&lt;/A&gt;&lt;SPAN&gt;. Field contains the following information &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Field_members.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Field_members.html&lt;/A&gt;&lt;SPAN&gt;. Note however that the layer need to be initialized before the LayerInfo will have a value.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 17:25:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-the-fields-in-a-layer-with-a/m-p/230680#M5933</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-01-11T17:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the fields in a layer with a ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-the-fields-in-a-layer-with-a/m-p/230681#M5934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Excellent, thank you very much&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 11:03:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-the-fields-in-a-layer-with-a/m-p/230681#M5934</guid>
      <dc:creator>SebastienPelletier</dc:creator>
      <dc:date>2011-01-12T11:03:50Z</dc:date>
    </item>
  </channel>
</rss>

