<?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 Query multiple feature layers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-multiple-feature-layers/m-p/617666#M57716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, is it possible to query multiple feature layers using the the .queryFeatures method? I would like to store all results found into a global array which can then be used elsewhere. Is there any sample i could look at for this situation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2014 19:03:32 GMT</pubDate>
    <dc:creator>RyanSmith1</dc:creator>
    <dc:date>2014-07-23T19:03:32Z</dc:date>
    <item>
      <title>Query multiple feature layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-multiple-feature-layers/m-p/617666#M57716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, is it possible to query multiple feature layers using the the .queryFeatures method? I would like to store all results found into a global array which can then be used elsewhere. Is there any sample i could look at for this situation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 19:03:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-multiple-feature-layers/m-p/617666#M57716</guid>
      <dc:creator>RyanSmith1</dc:creator>
      <dc:date>2014-07-23T19:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Query multiple feature layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-multiple-feature-layers/m-p/617667#M57717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To store all results in a global array, you probably want to look at &lt;A href="http://dojotoolkit.org/reference-guide/1.10/dojo/Deferred.html"&gt;dojo deferred&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would batch up the queries and run them - since they run asynchronously, you'd let the deferred manager handle the receipt of responses, which you would store in&lt;SPAN style="line-height: 1.5;"&gt; the global array.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;I posted a similar question on Stack Exchange a while ago - the &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/a/12678/3112" style="line-height: 1.5;"&gt;answer&lt;/A&gt;&lt;SPAN style="line-height: 1.5;"&gt; there includes a code sample which may help you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 05:22:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-multiple-feature-layers/m-p/617667#M57717</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2014-07-24T05:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Query multiple feature layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-multiple-feature-layers/m-p/617668#M57718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this Stephen, will look into it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 07:41:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-multiple-feature-layers/m-p/617668#M57718</guid>
      <dc:creator>RyanSmith1</dc:creator>
      <dc:date>2014-07-24T07:41:22Z</dc:date>
    </item>
  </channel>
</rss>

