<?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 widget in Javascript API 4.24 not firing &amp;quot;select-result&amp;quot; event for me in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-in-javascript-api-4-24-not-firing/m-p/1206392#M78444</link>
    <description>&lt;P&gt;Okay, i tried your sample, and yes i see that the basic case is indeed working there.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;Unfortunately my app is quite complex and is also restricted access.&amp;nbsp; It won't be easy to pull out a useful repro case, and i don't really have the budgeted hours available to do that, since i already burned most of the available hours dealing with this and a ton of other 4.12==&amp;gt;4.24 breaking changes.&amp;nbsp; At this point i'm going to have to just stick with 4.12 for now.&amp;nbsp; There's just too many remaining issues to deal with with 4.24.&lt;/P&gt;&lt;P&gt;But thanks anyway.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 16:30:36 GMT</pubDate>
    <dc:creator>EmoryHorvath</dc:creator>
    <dc:date>2022-08-25T16:30:36Z</dc:date>
    <item>
      <title>Search widget in Javascript API 4.24 not firing "select-result" event for me</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-in-javascript-api-4-24-not-firing/m-p/1206241#M78439</link>
      <description>&lt;P&gt;I'm attempting to upgrade a web app from 4.12 to 4.24, and like usual, it seems that every single thing in Javascript API has been changed in a breaking way.&lt;/P&gt;&lt;P&gt;But one of the many issues i'm running into is this:&amp;nbsp; The&amp;nbsp;Search widget in Javascript API 4.24 is not firing the "select-result" event for me.&amp;nbsp; It fires all the other events, but not this one.&amp;nbsp; So i can't pan to an address.&lt;/P&gt;&lt;P&gt;Here's a minimal code snippet for the search widget:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var locatorSearchWidget = new Search({
    container: "searchWidgetDiv",
    view: mapVw,
    searchAllEnabled: false,
    popupEnabled: true,
    popupOpenOnSelect: true,
    resultGraphicEnabled: false
});

locatorSearchWidget.on("select-result", function (event) {
   console.log("The selected search result: ", event);
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not seeing any errors displayed in the console.&amp;nbsp; The Search widget just never calls the event.&lt;/P&gt;&lt;P&gt;The network log shows the following correct webservice requests from the Search widget:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/suggest?location=%7B%22spatialReference%22%3A%7B%22wkid%22%3A2926%7D%2C%22x%22%3A1276481.1570000001%2C%22y%22%3A229067.00050000002%7D&amp;amp;maxSuggestions=6&amp;amp;outSR=%7B%22latestWkid%22%3A2926%2C%22wkid%22%3A2926%7D&amp;amp;text=13559%2016t&amp;amp;f=json

https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine=13559%2016th%20Ave%20NE%2C%20Seattle%2C%20WA%2C%2098125%2C%20USA&amp;amp;location=%7B%22spatialReference%22%3A%7B%22wkid%22%3A2926%7D%2C%22x%22%3A1276481.1570000001%2C%22y%22%3A229067.00050000002%7D&amp;amp;magicKey=dHA9MCNsb2M9MTI0NzA2NDUjbG5nPTM0I2ZhPTQ3MTg1OTIjaG49MTM1NTkjbGJzPTEwOTo1MTAyODI2MA%3D%3D&amp;amp;maxLocations=6&amp;amp;outFields=Addr_type%2CMatch_addr%2CStAddr%2CCity&amp;amp;outSR=%7B%22latestWkid%22%3A2926%2C%22wkid%22%3A2926%7D&amp;amp;f=json&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And they appear to be returning correct json results.&amp;nbsp; But the Search widget apparently just goes off into lala land after the findAddressCandidates response.&lt;/P&gt;&lt;P&gt;Is there any obvious thing i'm doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 07:44:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-in-javascript-api-4-24-not-firing/m-p/1206241#M78439</guid>
      <dc:creator>EmoryHorvath</dc:creator>
      <dc:date>2022-08-25T07:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget in Javascript API 4.24 not firing "select-result" event for me</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-in-javascript-api-4-24-not-firing/m-p/1206335#M78443</link>
      <description>&lt;P&gt;Not sure what your workflow looks like, but the select-result event is firing in this sample.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/yLKWVVm?editors=1001" target="_blank" rel="noopener"&gt;https://codepen.io/odoe/pen/yLKWVVm?editors=1001&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Do you have a repro? Could be something else going on.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 14:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-in-javascript-api-4-24-not-firing/m-p/1206335#M78443</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-08-25T14:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget in Javascript API 4.24 not firing "select-result" event for me</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-in-javascript-api-4-24-not-firing/m-p/1206392#M78444</link>
      <description>&lt;P&gt;Okay, i tried your sample, and yes i see that the basic case is indeed working there.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;Unfortunately my app is quite complex and is also restricted access.&amp;nbsp; It won't be easy to pull out a useful repro case, and i don't really have the budgeted hours available to do that, since i already burned most of the available hours dealing with this and a ton of other 4.12==&amp;gt;4.24 breaking changes.&amp;nbsp; At this point i'm going to have to just stick with 4.12 for now.&amp;nbsp; There's just too many remaining issues to deal with with 4.24.&lt;/P&gt;&lt;P&gt;But thanks anyway.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 16:30:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-in-javascript-api-4-24-not-firing/m-p/1206392#M78444</guid>
      <dc:creator>EmoryHorvath</dc:creator>
      <dc:date>2022-08-25T16:30:36Z</dc:date>
    </item>
  </channel>
</rss>

