<?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: Multiple layers selection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-layers-selection/m-p/1092714#M74424</link>
    <description>&lt;P&gt;Just like in the example, you are going to have to use the drawn box (polygon) and do a 'featureLayer.queryFeatures' on all of the layers that you add to your map.&amp;nbsp; The hard part is going to be what you do with it afterwards, as I believe the FeatureTable that's being used can only attach to one featureLayer at a time.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;You could get the results for each featurelayer, push them into one JSON string, and then use something like Dojo's 'dGrid' to display them, that would be a lot of work but you would have full control over it.&amp;nbsp; You could also take each result and write out the table in HTML (&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;fieldname&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;field value&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;) and stuff it back into the page.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have access to the new Experience Builder, you could create a page with a map, add all of&amp;nbsp; your layers, and then add the Table widget which can show the results of all of the feature layers with a nice way to select each one.&amp;nbsp; That would be my recommendation, but again, you need access to Experience Builder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Aug 2021 15:02:52 GMT</pubDate>
    <dc:creator>JeffreyWilkerson</dc:creator>
    <dc:date>2021-08-26T15:02:52Z</dc:date>
    <item>
      <title>Multiple layers selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-layers-selection/m-p/1092641#M74420</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P data-unlink="true"&gt;Here is what i try now to do: i want to select multiple layers e.g. by rectangle, i use this &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=highlight-features-by-geometry" target="_blank" rel="noopener"&gt;sample&lt;/A&gt; to select features, but how to do with multiple layers i do not know.&lt;/P&gt;&lt;P data-unlink="true"&gt;Just need to select multiple layers features at once, get their attributes to show them in table ( add attributes to table i have done already for my other project).&lt;/P&gt;&lt;P data-unlink="true"&gt;Any other solution, suggestion or advise that might be helpful will be appreciate .&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 09:54:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-layers-selection/m-p/1092641#M74420</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2021-08-26T09:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple layers selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-layers-selection/m-p/1092714#M74424</link>
      <description>&lt;P&gt;Just like in the example, you are going to have to use the drawn box (polygon) and do a 'featureLayer.queryFeatures' on all of the layers that you add to your map.&amp;nbsp; The hard part is going to be what you do with it afterwards, as I believe the FeatureTable that's being used can only attach to one featureLayer at a time.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;You could get the results for each featurelayer, push them into one JSON string, and then use something like Dojo's 'dGrid' to display them, that would be a lot of work but you would have full control over it.&amp;nbsp; You could also take each result and write out the table in HTML (&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;fieldname&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;field value&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;) and stuff it back into the page.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have access to the new Experience Builder, you could create a page with a map, add all of&amp;nbsp; your layers, and then add the Table widget which can show the results of all of the feature layers with a nice way to select each one.&amp;nbsp; That would be my recommendation, but again, you need access to Experience Builder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 15:02:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-layers-selection/m-p/1092714#M74424</guid>
      <dc:creator>JeffreyWilkerson</dc:creator>
      <dc:date>2021-08-26T15:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple layers selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-layers-selection/m-p/1098460#M74675</link>
      <description>&lt;P&gt;Thanks Jeffrey, i had no tie to try&amp;nbsp; your advice, in next few day i will try and let you know my results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 14:28:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-layers-selection/m-p/1098460#M74675</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2021-09-15T14:28:41Z</dc:date>
    </item>
  </channel>
</rss>

