<?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: No Results Text in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-no-results-text/m-p/237233#M22098</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rachel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;This is not something that you have to turn on of manipulate. When the search returns no results it should just show you the no results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/250987_NoResults.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Oct 2016 20:16:33 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-10-24T20:16:33Z</dc:date>
    <item>
      <title>Search Widget: No Results Text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-no-results-text/m-p/237232#M22097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to figure out how to display a default no results text in the search widget (i.e 'No Results Found'). I see that there are CSS properties for no Results, and have changed the&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;SPAN style="color: #000080; font-weight: bold;"&gt;arcgisSearch &lt;/SPAN&gt;.&lt;SPAN style="color: #000080; font-weight: bold;"&gt;showNoResults &lt;/SPAN&gt;.&lt;SPAN style="color: #000080; font-weight: bold;"&gt;noResultsMenu
&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&amp;nbsp; &lt;/SPAN&gt;display: &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;block &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;to&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;SPAN style="color: #000080; font-weight: bold;"&gt;arcgisSearch &lt;/SPAN&gt;.&lt;SPAN style="color: #000080; font-weight: bold;"&gt;showNoResults &lt;/SPAN&gt;.&lt;SPAN style="color: #000080; font-weight: bold;"&gt;noResultsMenu
&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&amp;nbsp; &lt;/SPAN&gt;display: inline&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;but I'm not seeing how to implement a no results property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-no-results-text/m-p/237232#M22097</guid>
      <dc:creator>RachelAlbritton</dc:creator>
      <dc:date>2021-12-11T11:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget: No Results Text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-no-results-text/m-p/237233#M22098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rachel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;This is not something that you have to turn on of manipulate. When the search returns no results it should just show you the no results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/250987_NoResults.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:16:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-no-results-text/m-p/237233#M22098</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-24T20:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget: No Results Text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-no-results-text/m-p/237234#M22099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok - thats not happening for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="106" src="https://community.esri.com/legacyfs/online/251003_pastedImage_1.png" width="382" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The search widget is set up to only search feature layers and none of esri geocoded services. Everything else works as it should. What would be causing this default behavior not to occur and is there a way to change the "No Results" test to something custom?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:21:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-no-results-text/m-p/237234#M22099</guid>
      <dc:creator>RachelAlbritton</dc:creator>
      <dc:date>2016-10-24T20:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget: No Results Text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-no-results-text/m-p/237235#M22100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rachel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Must be something in the way you have the Search Dijit setup in your code then as I can take this sample:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=search_multiplesources" title="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=search_multiplesources" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS API for JavaScript Sandbox | search_multiplesources&amp;nbsp;&lt;/A&gt;&amp;nbsp;and make an edit to the sources line 47 as such:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; sources &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="comment token"&gt;//search.get("sources");&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and now it only uses FeatureLayers and I still get the no results div when I click enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as changing the text:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;"dojo/i18n!esri/nls/jsapi"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
esriBundle&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;

esriBundle&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;widgets&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Search&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;main&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;noResults &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"blah blah"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:57:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-no-results-text/m-p/237235#M22100</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T11:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget: No Results Text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-no-results-text/m-p/237236#M22101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert - that is helpful. You're correct, the widget is set so that when I user hits enter the widget closes, therefore not giving the widget a chance to give the "No Results" message. Is there a way to have "No Results" (or similar message) be an automatic list item when the user starts typing until it matches a feature layer value specified in the widget properties. For example the screenshot below uses a select-2 &amp;nbsp;dojo widget. The "Please enter 2 or more characters" is actually a property of "No Results".&lt;/P&gt;&lt;P&gt;I'm looking for a way to do this with the search widget. Is that possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="167" src="https://community.esri.com/legacyfs/online/251014_pastedImage_1.png" width="547" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:54:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-no-results-text/m-p/237236#M22101</guid>
      <dc:creator>RachelAlbritton</dc:creator>
      <dc:date>2016-10-24T20:54:14Z</dc:date>
    </item>
  </channel>
</rss>

