<?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: Selecting Features from DataSource in Experience Builder Custom Widgets</title>
    <link>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1381099#M197</link>
    <description>&lt;P&gt;Awesome! do you mind sharing a snippet of how you went about querying and selecting the records? Eventually, I'd like to incorporate querying the related tables of a layer as well.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Feb 2024 16:13:42 GMT</pubDate>
    <dc:creator>PartyPelican</dc:creator>
    <dc:date>2024-02-12T16:13:42Z</dc:date>
    <item>
      <title>Selecting Features from DataSource</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1380684#M194</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;I am trying to create a widget that can select multiple layers based on a click event and show them in a series of tabs with a feature widget inside, however, I am new to development in experience builder. Currently I establish a click event listener on the map view and when the view is clicked, I query each FeatureLayerDataSource that is saved in state. I want to be able to select those results on the map but when I use datasource.selectRecordsByIds() with the object ids of the results, I dont see any highlighting on the map, and it appears as though my component renders twice. Its not clear to me why but you can see in the console that the tabs for each datasource gets rendered twice upon the click. This only happens when I use that selectRecordsByIds() method. Does anyone have any advice on how I can fix this or what I can do to make this work properly?&lt;BR /&gt;&lt;BR /&gt;I appreciate any feedback, thank you.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PartyPelican_0-1707527257062.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94382i5B5DAD92FE4BA74B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PartyPelican_0-1707527257062.png" alt="PartyPelican_0-1707527257062.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 01:09:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1380684#M194</guid>
      <dc:creator>PartyPelican</dc:creator>
      <dc:date>2024-02-10T01:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Features from DataSource</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1380912#M195</link>
      <description>&lt;P&gt;&amp;nbsp;you share the src code in a .zip ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 08:06:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1380912#M195</guid>
      <dc:creator>FredericPoliart_EsriAU</dc:creator>
      <dc:date>2024-02-12T08:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Features from DataSource</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1380990#M196</link>
      <description>&lt;P&gt;I am working on the same widget concept right now. Most of the work is done and I should be ready to release on here in a few days. Here is a preview.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffreyThompson2_0-1707745530149.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94462i95CE35A079AC340F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffreyThompson2_0-1707745530149.png" alt="JeffreyThompson2_0-1707745530149.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 13:45:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1380990#M196</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-02-12T13:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Features from DataSource</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1381099#M197</link>
      <description>&lt;P&gt;Awesome! do you mind sharing a snippet of how you went about querying and selecting the records? Eventually, I'd like to incorporate querying the related tables of a layer as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 16:13:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1381099#M197</guid>
      <dc:creator>PartyPelican</dc:creator>
      <dc:date>2024-02-12T16:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Features from DataSource</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1381177#M198</link>
      <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#fetchFeatures" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#fetchFeatures&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It's based around the popup.fetchFeatures() method. The earliest version of my widget was based on&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-feature-multiplelayers/" target="_self"&gt;this sample&lt;/A&gt;, but I think they have re-written some of it since I copied it.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 17:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1381177#M198</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-02-12T17:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Features from DataSource</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1382632#M203</link>
      <description>&lt;P&gt;I was on the right track with the selectRecordsByIds() method, I just forgot to pass in the array of records to select from as the second parameter. Once I did that, the feature was highlighted in the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PartyPelican_0-1707958801549.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94842i8702C623D2EB8864/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PartyPelican_0-1707958801549.png" alt="PartyPelican_0-1707958801549.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 01:01:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1382632#M203</guid>
      <dc:creator>PartyPelican</dc:creator>
      <dc:date>2024-02-15T01:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Features from DataSource</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1383190#M212</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If anyone is interested, I have attached the working widget. I am still developing it and will share it again once I have made more improvements. Feel free to refactor the code and suggest ways to make it better.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently, you can supply it layers to select from on a mouse click (the mouse click uses a 10 ft buffer). The selection is applied to the data source so the selection can be seen by other widgets like the table widget.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Update:&lt;BR /&gt;&lt;BR /&gt;I did some refactoring and added the option to change the buffer radius and units.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 00:22:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1383190#M212</guid>
      <dc:creator>PartyPelican</dc:creator>
      <dc:date>2024-02-24T00:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Features from DataSource</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1398553#M260</link>
      <description>&lt;P&gt;Hello I am in the same boat, although selected features show the number of records selected but features are not selected in the map. I see the url's are updated with features. If i refresh the url then it shows selected features. Please check the code snippet.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RachappaBellappa1_0-1710953231366.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98551iA3719011C714D97E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RachappaBellappa1_0-1710953231366.png" alt="RachappaBellappa1_0-1710953231366.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any thoughts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 16:48:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1398553#M260</guid>
      <dc:creator>RachappaBellappa1</dc:creator>
      <dc:date>2024-03-20T16:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Features from DataSource</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1398812#M262</link>
      <description>&lt;P&gt;Can you share your code please?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 00:43:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1398812#M262</guid>
      <dc:creator>PartyPelican</dc:creator>
      <dc:date>2024-03-21T00:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Features from DataSource</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1399061#M266</link>
      <description>&lt;P&gt;Please check the screenshot above, i have a JSON object and i am binding that to featuredatalayersource by passing objectids. In Network i can see it's doing query call and also in select widget it shows selected features count but features are not highlighted&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 15:27:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1399061#M266</guid>
      <dc:creator>RachappaBellappa1</dc:creator>
      <dc:date>2024-03-21T15:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Features from DataSource</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1550994#M394</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763368"&gt;@PartyPelican&lt;/a&gt;&amp;nbsp;Wow I was searching everywhere why selectRecordById() was not working for me. Thanks! After parsing objectid AND FeatureDataRecord the selection worked! But the function says incorrectly that FeatureDataRecord is an optional parameter!? Terrible...&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 17:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/selecting-features-from-datasource/m-p/1550994#M394</guid>
      <dc:creator>SerjStol</dc:creator>
      <dc:date>2024-10-22T17:14:56Z</dc:date>
    </item>
  </channel>
</rss>

