<?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 Map Service LayerInfos does not &amp;amp;amp;quot;find&amp;amp;amp;quot; table in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-layerinfos-does-not-amp-amp-quot-find/m-p/638965#M59676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a Map Service (ArcGIS Server 10.0 SP 5) that has 3 Layers and one Table. I am trying to access all of the Layers and Tables in code using the LayerInfos property. To my shock the Table is not listed in the LayerInfos. I need to search the Map Service for the Layer Name (table name) and get the Layer id (table id). What do I need to do to get LayerInfos to list Tables as well as the Layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cameron.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Sep 2013 21:22:41 GMT</pubDate>
    <dc:creator>CameronBlandy</dc:creator>
    <dc:date>2013-09-16T21:22:41Z</dc:date>
    <item>
      <title>Map Service LayerInfos does not &amp;amp;quot;find&amp;amp;quot; table</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-layerinfos-does-not-amp-amp-quot-find/m-p/638965#M59676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a Map Service (ArcGIS Server 10.0 SP 5) that has 3 Layers and one Table. I am trying to access all of the Layers and Tables in code using the LayerInfos property. To my shock the Table is not listed in the LayerInfos. I need to search the Map Service for the Layer Name (table name) and get the Layer id (table id). What do I need to do to get LayerInfos to list Tables as well as the Layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cameron.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 21:22:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-layerinfos-does-not-amp-amp-quot-find/m-p/638965#M59676</guid>
      <dc:creator>CameronBlandy</dc:creator>
      <dc:date>2013-09-16T21:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service LayerInfos does not "find" table</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-layerinfos-does-not-amp-amp-quot-find/m-p/638966#M59677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;LayerInfos is not for tables, but layers only. Make call to the rest endpoint of the map service layers like the below code sample.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var serviceLayersRequest = esri.request({ &amp;nbsp; url: "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSPetro/MapServer/layers",&amp;nbsp; // change to your url &amp;nbsp; content: { f: "json" }, &amp;nbsp; handleAs: "json", &amp;nbsp; callbackParamName: "callback" }); serviceLayersRequest.then( &amp;nbsp; function(response) { &amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Success: ", response.layers); &amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Success: ", response.tables); }, function(error) { &amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Error: ", error.message); });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 21:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-layerinfos-does-not-amp-amp-quot-find/m-p/638966#M59677</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2013-09-16T21:46:06Z</dc:date>
    </item>
  </channel>
</rss>

