<?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: How do I format display for suggestions with Search widget? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-format-display-for-suggestions-with/m-p/15759#M1451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh darn! That would be disappointing. I'm using this as part of a custom widget. Don't want to do more custom. It's hard to believe that with all the other silly&amp;nbsp;parameters&amp;nbsp;for tweaking they've crammed into Search, this&amp;nbsp;can't be changed. Thanks, Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jun 2020 13:24:31 GMT</pubDate>
    <dc:creator>Arne_Gelfert</dc:creator>
    <dc:date>2020-06-18T13:24:31Z</dc:date>
    <item>
      <title>How do I format display for suggestions with Search widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-format-display-for-suggestions-with/m-p/15757#M1449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I'm using a search widget to search across multiple similar (same schema)&amp;nbsp; map services and have set things up to&lt;/P&gt;&lt;P&gt;where I get suggestions.&lt;/P&gt;&lt;P&gt;Upon selection of a suggestion "result",&amp;nbsp;I've got&amp;nbsp;some event handlers doing what I need them to do and it all works. But&amp;nbsp;I just don't like how the suggestions are displayed. They are grouped by service/source including a header referencing that source something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; width: 34.3358%;"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH style="width: 100%;"&gt;service1 : searchfield1, searchfield 2&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width: 100%;"&gt;record 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 100%;"&gt;record 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 100%;"&gt;record 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 100%;"&gt;&lt;SPAN style="background-color: #efefef; font-weight: bold;"&gt;service2 : searchfield1, searchfield 2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 100%;"&gt;record 4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 100%;"&gt;record 5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 100%;"&gt;record 6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 100%;"&gt;&lt;SPAN style="background-color: #efefef; font-weight: bold;"&gt;service3 : searchfield1, searchfield 2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 100%;"&gt;record 7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 100%;"&gt;record 8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 100%;"&gt;record 9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;I want all those records but without any references to what service they came from.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My&amp;nbsp;Search widget looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;superSearch &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Search&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
          sources&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; list_of_services&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
          map&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
          popupEnabled&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
          autoSelect&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
          enableSourcesMenu&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
          enableSuggestions&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
          maxSuggestions&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
          allPlaceholder&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Example: John Smith"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;   &lt;SPAN class="comment token"&gt;// I'm searching for names&lt;/SPAN&gt;
          autoNavigate&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"superSearch"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&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;/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;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to format this, i.e. drop the "category" header identifying the feature services I'm calling? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:37:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-format-display-for-suggestions-with/m-p/15757#M1449</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-12-10T20:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I format display for suggestions with Search widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-format-display-for-suggestions-with/m-p/15758#M1450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arne,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this is the standard behaviour for multiple sources for the search widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would likely have to&amp;nbsp;code your own solution to get the result you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2020 23:57:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-format-display-for-suggestions-with/m-p/15758#M1450</guid>
      <dc:creator>mdonnelly</dc:creator>
      <dc:date>2020-06-17T23:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I format display for suggestions with Search widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-format-display-for-suggestions-with/m-p/15759#M1451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh darn! That would be disappointing. I'm using this as part of a custom widget. Don't want to do more custom. It's hard to believe that with all the other silly&amp;nbsp;parameters&amp;nbsp;for tweaking they've crammed into Search, this&amp;nbsp;can't be changed. Thanks, Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2020 13:24:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-format-display-for-suggestions-with/m-p/15759#M1451</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2020-06-18T13:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I format display for suggestions with Search widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-format-display-for-suggestions-with/m-p/15760#M1452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/339735"&gt;Arne Gelfert&lt;/A&gt;‌, I wonder if the Search widget is the best option for your use case. I'd like to understand more about what you are trying to accomplish. It sounds like you are doing a query of multiple layers, but you also want to have the suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, with regards to the Search widget parameters you mentioned, I'd be curious to know why you feel this way. Please feel free to message me on GeoNet if you are interested in discussing this further. If there is a way we can help you and make the API or the documentation better, then I am all ears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Noah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2020 17:34:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-format-display-for-suggestions-with/m-p/15760#M1452</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-06-18T17:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I format display for suggestions with Search widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-format-display-for-suggestions-with/m-p/15761#M1453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Noah. That would be a very opinionated conversation on my end, I'm afraid. I think you guys should start by consolidating on one API version. That would make my life easier for starters. Haha.&amp;nbsp;Can you have that done by Monday? Very few of my challenges with ArcGIS web development have been grounded in programming, specifically Javascript programming, challenges or GIS concepts. It's always been: use of a wrong version, inability to locate&amp;nbsp;the right piece of documentation or demo, bugs, the pancake stack of layers of abstraction&amp;nbsp;when using something like WAB and trying to custom develop for it.... On the flip side, it makes those moments a lot more meaningful when I get to say: "Holymoly, it's working!!!"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for&amp;nbsp;my issue described above, I wasn't able to&amp;nbsp;remove those header sections in the suggestions display but instead managed to override the&amp;nbsp;the meaningless&amp;nbsp;value or "service_name + suggestionTemplate" by setting the name property in my feature layers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var featureLayer = new FeatureLayer("http://sampleserver.....................",{
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;name: &amp;lt;my more meaningful name&amp;gt;,&lt;/STRONG&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;outFields: ["*"],
 &amp;nbsp;&amp;nbsp;&amp;nbsp;displayField: "dispField",
 &amp;nbsp;&amp;nbsp;&amp;nbsp;searchFields: ["searchfield1","searchfield2"],
 &amp;nbsp;&amp;nbsp;&amp;nbsp;suggestionTemplate: "${suggField1}"/ ${suggField2}",
 &amp;nbsp;&amp;nbsp;&amp;nbsp;enableSearchingAll: false,
 &amp;nbsp;&amp;nbsp;&amp;nbsp;exactMatch: false,
 &amp;nbsp;&amp;nbsp;&amp;nbsp;minCharacters: 0
});&lt;/PRE&gt;&lt;P&gt;That actually looks kind nice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:37:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-format-display-for-suggestions-with/m-p/15761#M1453</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-12-10T20:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I format display for suggestions with Search widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-format-display-for-suggestions-with/m-p/15762#M1454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Arne Gelfert wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Noah. That would be a very opinionated conversation on my end, I'm afraid. I think you guys should start by consolidating on one API version. That would make my life easier for starters. Haha.&amp;nbsp;Can you have that done by Monday?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Oops, it's Monday already; I'm behind the deadline! All jokes aside, I would still be interested in hearing your opinions. If you have the time and inclination, feel free to write up some of your thoughts and email them to me (or publicly post if you want). It is always good to hear feedback directly from the people.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Arne Gelfert wrote:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for&amp;nbsp;my issue described above, I wasn't able to&amp;nbsp;remove those header sections in the suggestions display but instead managed to override the&amp;nbsp;the meaningless&amp;nbsp;value or "service_name + suggestionTemplate" by setting the name property in my feature layers:&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Excellent, glad to hear you found a workaround, and thank you for sharing your solution here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 17:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-format-display-for-suggestions-with/m-p/15762#M1454</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-06-22T17:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I format display for suggestions with Search widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-format-display-for-suggestions-with/m-p/1136612#M76062</link>
      <description>&lt;P&gt;Hey Noah!&lt;BR /&gt;I bet you don't even remember this thread, but I'm here now searching for solutions to my search widget problems. It would be very, very useful if there was another parameter you could define like "suggestionAttributeToDisplay" or something that would allow you to specify what attribute of the suggestion result gets displayed.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 21:23:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-format-display-for-suggestions-with/m-p/1136612#M76062</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-01-24T21:23:33Z</dc:date>
    </item>
  </channel>
</rss>

