<?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 sends incorrect query string (4.8 js api) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-sends-incorrect-query-string-4-8-js/m-p/417366#M38379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default value for the single line field name is Single Line Input. If your service uses a different value you'll need to specify it using singleLineFieldName. Here's an FAQ&amp;nbsp; explaining when the field name will be SingeLine vs Single Line Input.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000013057" title="https://support.esri.com/en/technical-article/000013057"&gt;FAQ: How does the singleLineAddress property for geocoding services vary across address locator types?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2018 16:29:54 GMT</pubDate>
    <dc:creator>KellyHutchins</dc:creator>
    <dc:date>2018-09-05T16:29:54Z</dc:date>
    <item>
      <title>Search Widget sends incorrect query string (4.8 js api)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-sends-incorrect-query-string-4-8-js/m-p/417365#M38378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using the Search Widget with a local geocoding service an incorrect query string is sent if the singleLineFieldName is not defined. "Single Line Input" is sent while "SingleLine" is the correct parameter name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of poorly formed geocode request:&amp;nbsp; .../arcgis/rest/services/Locators/AddrComposite/GeocodeServer/findAddressCandidates?&lt;STRONG style="color: #ff0000;"&gt;Single%20Line%20Input&lt;/STRONG&gt;=808%20W%20Spokane%20Falls%20Blvd%2C%20Spokane%2C%20WA&amp;amp;f=json&amp;amp;outSR=%7B%22latestWkid%22%3A3857%2C%22wkid%22%3A102100%7D&amp;amp;magicKey=GST7YMc0AM9UOsEmObpaISTUYbTA1hp0&amp;amp;maxLocations=6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Property Defined:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&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;
&amp;nbsp;&amp;nbsp;&amp;nbsp; locator&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Locator&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgis.spokanecounty.org%2Farcgis%2Frest%2Fservices%2FLocators%2FAddrComposite%2FGeocodeServer" target="_blank"&gt;https://gis.spokanecounty.org/arcgis/rest/services/Locators/AddrComposite/GeocodeServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&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;
&amp;nbsp;&amp;nbsp;&amp;nbsp; name&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"AddrComposite"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; placeholder&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"search addresses"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; singleLineFieldName&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SingleLine"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;//Property Defined &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="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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of correct request after property is defined:&lt;/P&gt;&lt;P&gt;.../arcgis/rest/services/Locators/AddrComposite/GeocodeServer/findAddressCandidates?&lt;STRONG style="color: #008000;"&gt;SingleLine&lt;/STRONG&gt;=808%20W%20Spokane%20Falls%20Blvd%2C%20Spokane%2C%20WA&amp;amp;f=json&amp;amp;outSR=%7B%22latestWkid%22%3A3857%2C%22wkid%22%3A102100%7D&amp;amp;magicKey=GST7YMc0AM9UOsEmObpaISTUYbTA1hp0&amp;amp;maxLocations=6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:52:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-sends-incorrect-query-string-4-8-js/m-p/417365#M38378</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2021-12-11T18:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget sends incorrect query string (4.8 js api)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-sends-incorrect-query-string-4-8-js/m-p/417366#M38379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default value for the single line field name is Single Line Input. If your service uses a different value you'll need to specify it using singleLineFieldName. Here's an FAQ&amp;nbsp; explaining when the field name will be SingeLine vs Single Line Input.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000013057" title="https://support.esri.com/en/technical-article/000013057"&gt;FAQ: How does the singleLineAddress property for geocoding services vary across address locator types?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 16:29:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-sends-incorrect-query-string-4-8-js/m-p/417366#M38379</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2018-09-05T16:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget sends incorrect query string (4.8 js api)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-sends-incorrect-query-string-4-8-js/m-p/417367#M38380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kelly-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. The article is very informative. I didn't realize the &lt;A href="https://developers.arcgis.com/rest/geocode/api-reference/geocoding-find-address-candidates.htm#ESRI_SECTION2_38613C3FCB12462CAADD55B2905140BF"&gt;singleLine parameter &lt;/A&gt;can have different names.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #595959; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next',Avenir,'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 15.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: 0px; line-height: 26.35px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;The&amp;nbsp;singleLineFieldName parameter, which is the field name of the Single Line Address property in the REST services directory for the locator service, is required when configuring the Search widget to consume a geocode service.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #595959; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next',Avenir,'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 15.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: 0px; line-height: 26.35px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #595959; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next',Avenir,'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 15.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: 0px; line-height: 26.35px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;The singleLineAddressField value for address locators built using the US Address locator style is &lt;EM style="background-color: transparent; color: #595959; font-family: &amp;amp;quot; avenir next w01&amp;amp;quot;,&amp;amp;quot;avenir next w00&amp;amp;quot;,&amp;amp;quot;avenir next&amp;amp;quot;,avenir,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 15.8px; font-style: italic; font-variant: normal; font-weight: 300; letter-spacing: 0px; line-height: 26.35px; margin-bottom: 0px; margin-top: 0px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Single Line Input,&lt;/EM&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #595959; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next',Avenir,'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 15.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: 0px; line-height: 26.35px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; whereas composite locators use &lt;/SPAN&gt;&lt;EM style="background-color: transparent; color: #595959; font-family: &amp;amp;quot; avenir next w01&amp;amp;quot;,&amp;amp;quot;avenir next w00&amp;amp;quot;,&amp;amp;quot;avenir next&amp;amp;quot;,avenir,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 15.8px; font-style: italic; font-variant: normal; font-weight: 300; letter-spacing: 0px; line-height: 26.35px; margin-bottom: 0px; margin-top: 0px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;SingleLine.&lt;/EM&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #595959; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next',Avenir,'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 15.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: 0px; line-height: 26.35px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 17:03:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-sends-incorrect-query-string-4-8-js/m-p/417367#M38380</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2018-09-05T17:03:28Z</dc:date>
    </item>
  </channel>
</rss>

