<?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: Failed to search multiple search sources with ArcGIS Map JavaScript SDK 4.31 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-search-multiple-search-sources-with/m-p/1560555#M86101</link>
    <description>&lt;P&gt;Sorry for my post. I did mis firing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works as expected actually.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just configuring the multiple search sources within search view model and set the "activeSourceIndex = -1" then you could do multiple source search.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for my mis firing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2024 23:55:33 GMT</pubDate>
    <dc:creator>TedZhou</dc:creator>
    <dc:date>2024-11-19T23:55:33Z</dc:date>
    <item>
      <title>Failed to search multiple search sources with ArcGIS Map JavaScript SDK 4.31</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-search-multiple-search-sources-with/m-p/1559519#M86084</link>
      <description>&lt;P&gt;The ArcGIS JavaScript SDK mentioned SearchViewModel as below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#properties-summary" target="_blank" rel="noopener"&gt;SearchViewModel | API Reference | ArcGIS Maps SDK for JavaScript 4.31 | Esri Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;activeSourceIndex&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;SPAN class=""&gt;Property&lt;/SPAN&gt;activeSourceIndex&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank" rel="noopener"&gt;Number&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;The selected source's index. This value is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;-1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;when all sources are selected.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Default Value:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;I tried not a few times with multiple sources and set activeSourceIndex = -1, it actually only searches the first source at the list. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Not sure 1. Anything I might do incorrectly, 2. The server we connected to not set up properly,&amp;nbsp; or 3. ArcGIS JavaScript SDK (version 4.31) not supporting the multiple search sources?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Massive thanks for your kind tips.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Ted&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2024 21:33:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-search-multiple-search-sources-with/m-p/1559519#M86084</guid>
      <dc:creator>TedZhou</dc:creator>
      <dc:date>2024-11-17T21:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to search multiple search sources with ArcGIS Map JavaScript SDK 4.31</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-search-multiple-search-sources-with/m-p/1560049#M86096</link>
      <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-multiplesource/" target="_blank"&gt;Search widget with multiple sources | Sample Code | ArcGIS Maps SDK for JavaScript 4.31 | Esri Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The search widget works perfectly with multiple search sources.&lt;/P&gt;&lt;P&gt;Not sure what "&lt;STRONG&gt;All&lt;/STRONG&gt;" menu did with searchViewModel internally?&lt;/P&gt;&lt;P&gt;How could we only change searchViewModel or search without the popup template to select "All" to get the search multiple search sources working? Probably only change "activeSourceIndex = -1" is not enough?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The pop up "&lt;STRONG&gt;All&lt;/STRONG&gt;" menu probably did more than "activeSourceIndex = -1" to get the multiple search sources working perfectly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 02:20:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-search-multiple-search-sources-with/m-p/1560049#M86096</guid>
      <dc:creator>TedZhou</dc:creator>
      <dc:date>2024-11-19T02:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to search multiple search sources with ArcGIS Map JavaScript SDK 4.31</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-search-multiple-search-sources-with/m-p/1560555#M86101</link>
      <description>&lt;P&gt;Sorry for my post. I did mis firing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works as expected actually.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just configuring the multiple search sources within search view model and set the "activeSourceIndex = -1" then you could do multiple source search.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for my mis firing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 23:55:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-search-multiple-search-sources-with/m-p/1560555#M86101</guid>
      <dc:creator>TedZhou</dc:creator>
      <dc:date>2024-11-19T23:55:33Z</dc:date>
    </item>
  </channel>
</rss>

