<?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 do I obtain a list of all fields in a web service? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-obtain-a-list-of-all-fields-in-a-web/m-p/756680#M69962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;pepatosp is correct - you need to query for the individual layer.&amp;nbsp;&amp;nbsp; Here's a link to a sample in the help that shows how to do this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/data_requestLayerInfo.html"&gt;https://developers.arcgis.com/javascript/jssamples/data_requestLayerInfo.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2014 18:05:26 GMT</pubDate>
    <dc:creator>KellyHutchins</dc:creator>
    <dc:date>2014-02-18T18:05:26Z</dc:date>
    <item>
      <title>How do I obtain a list of all fields in a web service?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-obtain-a-list-of-all-fields-in-a-web/m-p/756678#M69960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this is an easy question but I cannot seem to find an API call that can return the list of fields in an ArcGIS web service.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For instance, this web&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Household_Income/MapServer" rel="nofollow" target="_blank"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Household_Income/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;has the following fields:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]OBJECTID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shape&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NAME&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ST_ABBREV&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LANDAREA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TOTPOP_CY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MEDHINC_CY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HINCBASECY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HINC50_CY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HINC75_CY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HINC100_CY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HINC150_CY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HINC200_CY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MEDHHINC_pct_USAvg&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HINC0_25&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HINC35_50[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I basically want to be able to consume (dynamically) this list so I can put it into my UI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 14:36:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-obtain-a-list-of-all-fields-in-a-web/m-p/756678#M69960</guid>
      <dc:creator>DonaldCatanzaro</dc:creator>
      <dc:date>2014-02-18T14:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I obtain a list of all fields in a web service?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-obtain-a-list-of-all-fields-in-a-web/m-p/756679#M69961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I think this is an easy question but I cannot seem to find an API call that can return the list of fields in an ArcGIS web service.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;For instance, this web&lt;A class="jive-link-external-small" href="http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Household_Income/MapServer" rel="nofollow" target="_blank"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Household_Income/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;has the following fields:&lt;BR /&gt;[INDENT]OBJECTID&lt;BR /&gt;Shape&lt;BR /&gt;ID&lt;BR /&gt;NAME&lt;BR /&gt;ST_ABBREV&lt;BR /&gt;LANDAREA&lt;BR /&gt;TOTPOP_CY&lt;BR /&gt;MEDHINC_CY&lt;BR /&gt;HINCBASECY&lt;BR /&gt;HINC50_CY&lt;BR /&gt;HINC75_CY&lt;BR /&gt;HINC100_CY&lt;BR /&gt;HINC150_CY&lt;BR /&gt;HINC200_CY&lt;BR /&gt;MEDHHINC_pct_USAvg&lt;BR /&gt;HINC0_25&lt;BR /&gt;HINC35_50[/INDENT]&lt;BR /&gt;&lt;BR /&gt;I basically want to be able to consume (dynamically) this list so I can put it into my UI.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance !&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to specify from which layer you're interested in. A map service is a composition of many layers, each of them with a field set. You can access a specific layer from a MapService using and index based identifier in your url, like the following sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Household_Income/MapServer/1&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can query the fields of a specific layer using the property fields of a FeatureService object. See &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html" rel="nofollow" target="_blank"&gt;this link&lt;/A&gt;&lt;SPAN&gt; for more info.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 14:45:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-obtain-a-list-of-all-fields-in-a-web/m-p/756679#M69961</guid>
      <dc:creator>RobertoPepato</dc:creator>
      <dc:date>2014-02-18T14:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I obtain a list of all fields in a web service?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-obtain-a-list-of-all-fields-in-a-web/m-p/756680#M69962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;pepatosp is correct - you need to query for the individual layer.&amp;nbsp;&amp;nbsp; Here's a link to a sample in the help that shows how to do this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/data_requestLayerInfo.html"&gt;https://developers.arcgis.com/javascript/jssamples/data_requestLayerInfo.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 18:05:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-obtain-a-list-of-all-fields-in-a-web/m-p/756680#M69962</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2014-02-18T18:05:26Z</dc:date>
    </item>
  </channel>
</rss>

