<?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: Search requires selection twice and results panel doesn't auto-collapse? in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1309545#M7653</link>
    <description>&lt;P&gt;Wow, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/677423"&gt;@JeffreyThompson2&lt;/a&gt;, Problem 1 seems to be working now. I swear it wasn't before, and I had "Auto Select First Result" checked. And we are using the standard ExB version (for now at least), so hopefully this is a popular request and can get implemented. Thanks for the help!&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2023 14:47:37 GMT</pubDate>
    <dc:creator>DerekMStrout</dc:creator>
    <dc:date>2023-07-19T14:47:37Z</dc:date>
    <item>
      <title>Search requires selection twice and results panel doesn't auto-collapse?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1309510#M7650</link>
      <description>&lt;P&gt;Hi there. I'm building a simple ExB app and have two issues with the Search widget which may be related (if not, I can post them separately). The widget is looking at two different data sources: a map layer and World Geocoding Service.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The first selection the user makes from the result panel simply seems to re-filter the results (even if the original search term was an exact match for a result), requiring them to click the desired result a second time in order to trigger the other widgets.&lt;/LI&gt;&lt;LI&gt;After the second (successful) selection, the results panel remains visible, obscuring the top of an Editor widget which sits directly below. This requires the user to identify and click the small Collapse button at the bottom of the results (I am using the Compact results panel option).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Am I missing some configuration option to address one or both of these issues? If not, I can add these as Ideas.&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Derek&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 14:05:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1309510#M7650</guid>
      <dc:creator>DerekMStrout</dc:creator>
      <dc:date>2023-07-19T14:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Search requires selection twice and results panel doesn't auto-collapse?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1309536#M7651</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/398050"&gt;@DerekMStrout&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also noticed this, would be useful if this widget is edited.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 14:36:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1309536#M7651</guid>
      <dc:creator>HeatherBell</dc:creator>
      <dc:date>2023-07-19T14:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Search requires selection twice and results panel doesn't auto-collapse?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1309539#M7652</link>
      <description>&lt;P&gt;Problem 1 is an easy fix. In the builder mode, open up the search result options and check 'Auto Select First Result'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffreyThompson2_0-1689777365767.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75733iA82EA36E2910C313/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffreyThompson2_0-1689777365767.png" alt="JeffreyThompson2_0-1689777365767.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Problem 2 is some bad design on ESRI's part. I have a fix if you are using developer edition. Open the result-list.tsx, find the onSelectRecord function and add onShowResultButtonclick()&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 14:41:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1309539#M7652</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2023-07-19T14:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search requires selection twice and results panel doesn't auto-collapse?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1309545#M7653</link>
      <description>&lt;P&gt;Wow, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/677423"&gt;@JeffreyThompson2&lt;/a&gt;, Problem 1 seems to be working now. I swear it wasn't before, and I had "Auto Select First Result" checked. And we are using the standard ExB version (for now at least), so hopefully this is a popular request and can get implemented. Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 14:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1309545#M7653</guid>
      <dc:creator>DerekMStrout</dc:creator>
      <dc:date>2023-07-19T14:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Search requires selection twice and results panel doesn't auto-collapse?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1319367#M7993</link>
      <description>&lt;P&gt;Would you happen to know why the Search widget is not selecting the matching feature when I have the result panel turned off, but works fine when it is turned on?&lt;/P&gt;&lt;P&gt;My experience has 2 maps, the one users interact with and one I'm using for all the fun back end stuff. The search widget is tied to a dedicated search layer in the backend map, and any selection of a feature from the Search layer is tied by actions to the layer controlling the popup as well as the corresponding feature in the user map. With the result panel turned on, it all works as expected with no snags I've come across. However, when I turn that off (so my non-empty searches can open the correct Section View) nothing happens.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 21:35:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1319367#M7993</guid>
      <dc:creator>CassNEGIS</dc:creator>
      <dc:date>2023-08-16T21:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Search requires selection twice and results panel doesn't auto-collapse?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1563226#M16220</link>
      <description>&lt;P&gt;Hi Jeffrey, I just wanted to say thanks for posting this as its incredibly useful. I have the same issue, and I was wondering if you could post your copy of the result-list.tsx file as I'm not totally clear what changes to make.&lt;/P&gt;&lt;P&gt;Thanks in advance, this is a big help.&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 09:11:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1563226#M16220</guid>
      <dc:creator>johnchewitt77</dc:creator>
      <dc:date>2024-11-28T09:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search requires selection twice and results panel doesn't auto-collapse?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1563642#M16237</link>
      <description>&lt;P&gt;In the picture above there is a toggle switch to turn off the Result Panel, as of the latest version of ArcGIS Online, this option actually works and you can use the Search Widget with the Results Panel turned off. This should be in Developer Edition 1.16 in a week or two.&lt;/P&gt;&lt;P&gt;The result-list.tsx file is very long. Posting it all really wouldn't be very useful. There is a Search Widget with this modification in this package.&amp;nbsp;&lt;A href="https://community.esri.com/t5/experience-builder-custom-widgets/identify-for-experience-builder-1-14/ta-p/1480343" target="_blank"&gt;https://community.esri.com/t5/experience-builder-custom-widgets/identify-for-experience-builder-1-14/ta-p/1480343&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And this post goes into some more detail about what modifications were made and how. &lt;A href="https://community.esri.com/t5/experience-builder-tips-and-tricks/modifying-esri-widgets-and-making-the-search/ba-p/1373949" target="_blank"&gt;https://community.esri.com/t5/experience-builder-tips-and-tricks/modifying-esri-widgets-and-making-the-search/ba-p/1373949&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 13:55:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1563642#M16237</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-12-02T13:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Search requires selection twice and results panel doesn't auto-collapse?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1564596#M16265</link>
      <description>&lt;P&gt;Thanks Jeff, this is brilliant! I really appreciate the help. I followed the instructions and updated the result_list.tsx based on your code but it doesn't seem to work. My code update is below if you have time to run your eyes over it and tell me what I've done wrong. I think I may owe you some Irish Whiskey for this&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the code change I made as a result to the file at C:\ArcGis\ArcGisExperienceBuilder115\client\your-extensions\widgets\searchcustom\src\runtime\component\result_list.tsx (code change highlighted in bold)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;const onSelectRecord = hooks.useEventCallback((option: SelectRecordsOption) =&amp;gt; {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const { isActive, recordId, dsId, configId } = option&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const localDsId = displayRecordRef.current?.[configId]?.[0]?.localDsId&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const isGeocodeRecords = displayRecordRef.current?.[configId]?.[0]?.isGeocodeRecords&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const datasourceId = isGeocodeRecords ? dsId : localDsId&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const ds = getDatasource(datasourceId) as QueriableDataSource&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Publish message action&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const records = !isActive ? getRecordsByRecordsId(configId, recordId) : []&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // const widgetId = isGeocodeRecords ? id : localId&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageManager.getInstance().publishMessage(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new DataRecordsSelectionChangeMessage(id, records)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; handleDsIdOfSelectedResultItemChange(recordId ? dsId : null)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (recordId) {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !isActive &amp;amp;&amp;amp; clearOtherDsSlectedRecords(configId)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !isActive ? ds?.selectRecordsByIds([recordId]) : ds?.selectRecordsByIds([])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; //Closes search result panel&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; onShowResultButtonclick()&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; })&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 09:13:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1564596#M16265</guid>
      <dc:creator>johnchewitt77</dc:creator>
      <dc:date>2024-12-04T09:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search requires selection twice and results panel doesn't auto-collapse?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1564630#M16266</link>
      <description>&lt;P&gt;It's been a couple editions since I've done this, so it's possible there has been a code change along the way that broke this one line fix. I don't see any issue in the code you posted. If you turned off the Result Panel Toggle in the Build Mode try turning it back on.&lt;/P&gt;&lt;P&gt;Developer Edition 1.16 should be released today and it will make turning off the result panel a standard option.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 13:31:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1564630#M16266</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-12-04T13:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Search requires selection twice and results panel doesn't auto-collapse?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1569966#M16600</link>
      <description>&lt;P&gt;In AGOL search bar finds the main address on the parcel but the results panel is set to auto-select and zooms to one of the unit address on the parcel. Is there a way to setup sort or assign priority based on an attribute type?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 20:58:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/search-requires-selection-twice-and-results-panel/m-p/1569966#M16600</guid>
      <dc:creator>avonmoos</dc:creator>
      <dc:date>2024-12-18T20:58:08Z</dc:date>
    </item>
  </channel>
</rss>

