<?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 Get selected Features in LayerView in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-selected-features-in-layerview/m-p/1144557#M76372</link>
    <description>&lt;P&gt;I am currently developing 2 widgets in the Experience Builder. In one of the two widgets I have implemented the Esri search widget and mark the feature in the LayerView via the search result. Now I would like to use the other widget to react when a feature layer is selected and then read it.&lt;/P&gt;&lt;P&gt;Is this somehow possible I have already looked in the Map, View, Layer, LayerView to see if it is possible to read the currently selected features but so far I have not found anything.&lt;/P&gt;&lt;P&gt;The whole thing I had already managed via the popup but I would like to deactivate the popup.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 11:46:04 GMT</pubDate>
    <dc:creator>WUE_BARAL</dc:creator>
    <dc:date>2022-02-16T11:46:04Z</dc:date>
    <item>
      <title>Get selected Features in LayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-selected-features-in-layerview/m-p/1144557#M76372</link>
      <description>&lt;P&gt;I am currently developing 2 widgets in the Experience Builder. In one of the two widgets I have implemented the Esri search widget and mark the feature in the LayerView via the search result. Now I would like to use the other widget to react when a feature layer is selected and then read it.&lt;/P&gt;&lt;P&gt;Is this somehow possible I have already looked in the Map, View, Layer, LayerView to see if it is possible to read the currently selected features but so far I have not found anything.&lt;/P&gt;&lt;P&gt;The whole thing I had already managed via the popup but I would like to deactivate the popup.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 11:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-selected-features-in-layerview/m-p/1144557#M76372</guid>
      <dc:creator>WUE_BARAL</dc:creator>
      <dc:date>2022-02-16T11:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected Features in LayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-selected-features-in-layerview/m-p/1144630#M76373</link>
      <description>&lt;P&gt;Check out the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html" target="_self"&gt;documentation for the Search widget&lt;/A&gt;. There are some properties and events that get the selected result. The &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#event-select-result" target="_self"&gt;select-result event&lt;/A&gt; seems easiest:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const searchWidget = new Search();

searchWidget.on("select-result", function(event){
  console.log("The selected search result: ", event);
});&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 16 Feb 2022 14:42:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-selected-features-in-layerview/m-p/1144630#M76373</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2022-02-16T14:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected Features in LayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-selected-features-in-layerview/m-p/1145042#M76382</link>
      <description>&lt;P&gt;Yes i allready have a simular line of code in Widget A and with the result of the search i highlight the features.&lt;BR /&gt;But now i want to get these highlighted features in my Widget B. There i dont have access to the search or is this also possible?&lt;BR /&gt;&lt;BR /&gt;I also noticed that i have autoSelect set to false because i dont want the search widget to zoom on the result.&amp;nbsp;&lt;BR /&gt;In this case the select-result event doesnt work.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 07:24:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-selected-features-in-layerview/m-p/1145042#M76382</guid>
      <dc:creator>WUE_BARAL</dc:creator>
      <dc:date>2022-02-17T07:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected Features in LayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-selected-features-in-layerview/m-p/1145138#M76384</link>
      <description>&lt;P&gt;You could either save the result from the select-result event to a global variable or call the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#selectedResult" target="_self"&gt;selectedResult property&lt;/A&gt; from your other widget.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 14:13:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-selected-features-in-layerview/m-p/1145138#M76384</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2022-02-17T14:13:33Z</dc:date>
    </item>
  </channel>
</rss>

