<?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: HowTo Get Field Names From Layer? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134804#M3378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi guys,&lt;BR /&gt;&lt;BR /&gt;I've created two posts in my technical blog that demonstrates how to do that. I've created an extension method for the ArcGISDynamicMapServiceLayer class. Unfortunally, my blog is in brazilian portuguese but you guys can easily translated it using Google (I guess).&lt;BR /&gt;&lt;BR /&gt;See links below:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Estendendo a ESRI ArcGIS API For Microsoft Silverlight/WPF �?? Parte 1&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="http://araimundo.blogspot.com/2010/05/estendendo-esri-arcgis-api-for_29.html"&gt;http://araimundo.blogspot.com/2010/05/estendendo-esri-arcgis-api-for_29.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Estendendo a ESRI ArcGIS API For Microsoft Silverlight/WPF �?? Parte 2 &lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="http://araimundo.blogspot.com/2010/05/estendendo-esri-arcgis-api-for_6136.html"&gt;http://araimundo.blogspot.com/2010/05/estendendo-esri-arcgis-api-for_6136.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards.&lt;BR /&gt;&lt;BR /&gt;Ari C. Raimundo&lt;BR /&gt;&lt;STRONG&gt;Application Developer&lt;/STRONG&gt;&lt;BR /&gt;Curitiba-PR-Brazil&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Ari,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for your code it helped me a lot... saved my day, it gives a exact approach for fetching the fields of a DynamicMapServer layer I have been searching for a while for a guide for similar approach and you have done a awesome job and moreover shared your work -- not just giving pointers like in other posts. Thats really cool. Thanks a lot all points to you. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also by the way Curitiba is a nice cool town.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jan 2011 06:06:31 GMT</pubDate>
    <dc:creator>vipulsoni</dc:creator>
    <dc:date>2011-01-13T06:06:31Z</dc:date>
    <item>
      <title>HowTo Get Field Names From Layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134798#M3372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I have a ArcGISDynamicMapServiceLayer, which has sub layers inside of it... how do I get the names of the fields inside that sublayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 22:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134798#M3372</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2010-05-05T22:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Get Field Names From Layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134799#M3373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think there is a SL API giving the fields for ArcGISDynamicMapServiceLayer but you can get the info by requesting the REST point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example &lt;/SPAN&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Population_Density/MapServer/3?f=pjson" rel="nofollow noopener noreferrer" target="_blank"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Population_Density/MapServer/3?f=pjson&lt;/A&gt;&lt;SPAN&gt; gives this result:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{
&amp;nbsp; "id" : 3, 
&amp;nbsp; "name" : "Counties", 
&amp;nbsp; "type" : "Feature Layer", 
&amp;nbsp; "geometryType" : "esriGeometryPolygon", 
&amp;nbsp; "description" : "This thematic map presents the population density in the United States in 2009. Population density is the number of people per square mile. It is calculated by dividing the total population count of geographic feature by the area of the feature, in square miles. The area is calculated from the geometry of the geographic feature in projected coordinates. The geography depicts states at greater than 25m scale, counties at 1m to 25m scale, Census Tracts at 250k to 1m scale, and Census Block Groups at less than 250k scale. The map has been designed to be displayed with semi-transparency of about 50% for overlay on other base maps, which is reflected in the legend for the map.&amp;nbsp; For more information on this map, visit us online at http://goto.arcgisonline.com/maps/Demographics/USA_Population_Density", 
&amp;nbsp; "definitionExpression" : "", 
&amp;nbsp; "copyrightText" : "Copyright:© 2009 ESRI", 
&amp;nbsp; "minScale" : 25000000, 
&amp;nbsp; "maxScale" : 750001, 
&amp;nbsp; "extent" : {
&amp;nbsp;&amp;nbsp;&amp;nbsp; "xmin" : -19840230.3902342, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; "ymin" : 2144435.3403614, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; "xmax" : -7452840.46520711, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; "ymax" : 11537127.3143578, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; "spatialReference" : {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "wkid" : 102100
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }, 
&amp;nbsp; "displayField" : "NAME", 
&amp;nbsp; "fields" : [
&amp;nbsp;&amp;nbsp;&amp;nbsp; {"name" : "Shape", "type" : "esriFieldTypeGeometry", "alias" : "Shape"}, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {"name" : "ID", "type" : "esriFieldTypeString", "alias" : "ID"}, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {"name" : "NAME", "type" : "esriFieldTypeString", "alias" : "Name"}, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {"name" : "ST_ABBREV", "type" : "esriFieldTypeString", "alias" : "State Abbreviation"}, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {"name" : "TOTPOP_CY", "type" : "esriFieldTypeInteger", "alias" : "2009 Total Population"}, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {"name" : "POPDENS_CY", "type" : "esriFieldTypeDouble", "alias" : "2009 Population Density"}, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {"name" : "LANDAREA", "type" : "esriFieldTypeDouble", "alias" : "Land Area in Square Miles"}, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {"name" : "Shape_Length", "type" : "esriFieldTypeDouble", "alias" : "Shape_Length"}, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {"name" : "Shape_Area", "type" : "esriFieldTypeDouble", "alias" : "Shape_Area"}
&amp;nbsp; ], 
&amp;nbsp; "parentLayer" : {"id" : 0, "name" : "USA Population Density"}, 
&amp;nbsp; "subLayers" : []
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But you will need a little code to deserialize this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/Dominique&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:32:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134799#M3373</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2021-12-11T07:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Get Field Names From Layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134800#M3374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great, thanks a lot for that info... I guess I will have to figure out how to request data from a REST service.&amp;nbsp; Know any good examples of this?&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 15:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134800#M3374</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2010-05-06T15:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Get Field Names From Layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134801#M3375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you have the version 2 of the API, another option you might consider is to create a FeatureLayer which will give you the list of fields after the initialization step.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example: Declare a feature layer in selection only mode in order not to request any data you don't need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;esri:FeatureLayer Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mode="SelectionOnly" Initialized="FeatureLayer_Initialized"&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Get the fields by handling 'Initialized' event :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;private void FeatureLayer_Initialized(object sender, EventArgs e)
{
 FeatureLayer featureLayer = sender as FeatureLayer;
 List&amp;lt;Field&amp;gt; fields = featureLayer.LayerInfo.Fields;

 fields.ForEach(field =&amp;gt; Debug.WriteLine(String.Format("Field Name = {0}, Alias = {1}, type = {2}", field.Name, field.Alias, field.Type)));
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/Dominique&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:32:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134801#M3375</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2021-12-11T07:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Get Field Names From Layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134802#M3376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to programmatically obtain the Field_Alias from the REST end point for use with the identify task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This ties in with this post &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/7793-Identify-How-to-show-Alias-filed-instead-of-Field-Name?p=23968&amp;amp;posted=1#post23968"&gt;http://forums.arcgis.com/threads/7793-Identify-How-to-show-Alias-filed-instead-of-Field-Name?p=23968&amp;amp;posted=1#post23968&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Happy if someone could shed some light on this for me&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 20:31:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134802#M3376</guid>
      <dc:creator>AlexanderAnkrah</dc:creator>
      <dc:date>2010-07-08T20:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Get Field Names From Layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134803#M3377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created two posts in my technical blog that demonstrates how to do that. I've created an extension method for the ArcGISDynamicMapServiceLayer class. Unfortunally, my blog is in brazilian portuguese but you guys can easily translated it using Google (I guess).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See links below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Estendendo a ESRI ArcGIS API For Microsoft Silverlight/WPF �?? Parte 1&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="http://araimundo.blogspot.com/2010/05/estendendo-esri-arcgis-api-for_29.html"&gt;http://araimundo.blogspot.com/2010/05/estendendo-esri-arcgis-api-for_29.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Estendendo a ESRI ArcGIS API For Microsoft Silverlight/WPF �?? Parte 2 &lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="http://araimundo.blogspot.com/2010/05/estendendo-esri-arcgis-api-for_6136.html"&gt;http://araimundo.blogspot.com/2010/05/estendendo-esri-arcgis-api-for_6136.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ari C. Raimundo&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Application Developer&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Curitiba-PR-Brazil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 17:22:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134803#M3377</guid>
      <dc:creator>AriRaimundo</dc:creator>
      <dc:date>2010-07-12T17:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Get Field Names From Layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134804#M3378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi guys,&lt;BR /&gt;&lt;BR /&gt;I've created two posts in my technical blog that demonstrates how to do that. I've created an extension method for the ArcGISDynamicMapServiceLayer class. Unfortunally, my blog is in brazilian portuguese but you guys can easily translated it using Google (I guess).&lt;BR /&gt;&lt;BR /&gt;See links below:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Estendendo a ESRI ArcGIS API For Microsoft Silverlight/WPF �?? Parte 1&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="http://araimundo.blogspot.com/2010/05/estendendo-esri-arcgis-api-for_29.html"&gt;http://araimundo.blogspot.com/2010/05/estendendo-esri-arcgis-api-for_29.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Estendendo a ESRI ArcGIS API For Microsoft Silverlight/WPF �?? Parte 2 &lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="http://araimundo.blogspot.com/2010/05/estendendo-esri-arcgis-api-for_6136.html"&gt;http://araimundo.blogspot.com/2010/05/estendendo-esri-arcgis-api-for_6136.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards.&lt;BR /&gt;&lt;BR /&gt;Ari C. Raimundo&lt;BR /&gt;&lt;STRONG&gt;Application Developer&lt;/STRONG&gt;&lt;BR /&gt;Curitiba-PR-Brazil&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Ari,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for your code it helped me a lot... saved my day, it gives a exact approach for fetching the fields of a DynamicMapServer layer I have been searching for a while for a guide for similar approach and you have done a awesome job and moreover shared your work -- not just giving pointers like in other posts. Thats really cool. Thanks a lot all points to you. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also by the way Curitiba is a nice cool town.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 06:06:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134804#M3378</guid>
      <dc:creator>vipulsoni</dc:creator>
      <dc:date>2011-01-13T06:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Get Field Names From Layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134805#M3379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Impressive work Ari!! Thanks to you and Google Translate, a combobox in my application isnt empty anymore &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Ari,&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for your code it helped me a lot... saved my day, it gives a exact approach for fetching the fields of a DynamicMapServer layer I have been searching for a while for a guide for similar approach and you have done a awesome job and moreover shared your work -- not just giving pointers like in other posts. Thats really cool. Thanks a lot all points to you. &lt;BR /&gt;Also by the way Curitiba is a nice cool town.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 18:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/howto-get-field-names-from-layer/m-p/134805#M3379</guid>
      <dc:creator>SangamLama</dc:creator>
      <dc:date>2011-05-12T18:55:12Z</dc:date>
    </item>
  </channel>
</rss>

