<?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: Geocoding Question in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/geocoding-question/m-p/655991#M19447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What I am confused about is, when I add in using the Viewer for Flex 3.0 user interface and then preview it, it gives me only one line&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;If the service supports a single line input (like the one you are using), then the widget will default to use that (single line input).&amp;nbsp; Unless you specify the following in your locate widget xml file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;usesingleline&amp;gt;false&amp;lt;/usesingleline&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Locate_widget_tags/01m30000000r000000/"&gt;http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Locate_widget_tags/01m30000000r000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2012 21:56:55 GMT</pubDate>
    <dc:creator>BjornSvensson</dc:creator>
    <dc:date>2012-10-26T21:56:55Z</dc:date>
    <item>
      <title>Geocoding Question</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/geocoding-question/m-p/655987#M19443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I like using the default LocateWidget in Flexviewer.&amp;nbsp; How can you tailor this to only display streets in your county, without having to enter the city or zip.&amp;nbsp; Where can this be changed? Any suggestions would be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 11:52:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/geocoding-question/m-p/655987#M19443</guid>
      <dc:creator>AndyWhitley</dc:creator>
      <dc:date>2011-08-30T11:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding Question</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/geocoding-question/m-p/655988#M19444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How can you tailor [LocateWidget] to only display streets in your county, without having to enter the city or zip ...?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;County is not one of the field supported by the locator, but if it was a city, state, or zip code it could be done...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Flex Viewer include an example of the latter in the widgets/Locate folder called LocateWidget_RanchoCucamonga.xml&amp;nbsp; which you can also see online at &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapps/flexviewer/live/widgets/Locate/LocateWidget_RanchoCucamonga.xml" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapps/flexviewer/live/widgets/Locate/LocateWidget_RanchoCucamonga.xml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It has the default value set and the visibility of the field turned off, thus "hardcoding" it and not allowing you end-user to change it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;fields&amp;gt;
&amp;lt;field name="City" defaultvalue="Rancho Cucamonga" editable="false"/&amp;gt;
&amp;lt;field name="Zip" defaultvalue="91730" listvalues="91701,91729,91730,91737,91739"/&amp;gt;
&amp;lt;field name="Zip4" visible="false"/&amp;gt;
&amp;lt;field name="State" defaultvalue="CA" visible="false"/&amp;gt;
&amp;lt;field name="Country" defaultvalue="USA" visible="false"/&amp;gt;
&amp;lt;/fields&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;For more information, see &lt;/SPAN&gt;&lt;A href="http://links.esri.com/locatewidget" rel="nofollow noopener noreferrer" target="_blank"&gt;http://links.esri.com/locatewidget&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:46:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/geocoding-question/m-p/655988#M19444</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2021-12-12T03:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding Question</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/geocoding-question/m-p/655989#M19445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This works well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 15:46:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/geocoding-question/m-p/655989#M19445</guid>
      <dc:creator>AndyWhitley</dc:creator>
      <dc:date>2011-08-30T15:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding Question</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/geocoding-question/m-p/655990#M19446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using the geocoder in Flexviewer found below: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I am confused about is, when I add in using the Viewer for Flex 3.0 user interface and then preview it, it gives me only one line, and I have to enter in the city and state still.&amp;nbsp; I just want the users to be able to search only within the city as there is no need to search out side of it.&amp;nbsp; The confusion comes is, which .xml file do I add the code that is presented so it knows to only search within the city?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I have done so far and did not work :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in config.xml changed the LocateWidget_NA to a copied version with the new field input tags&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;widget left="100" top="90" icon="assets/images/i_target.png" label="Find an address" config="widgets/Locate/COPYLocateWidget_NA.xml" url="widgets/Locate/LocateWidget.swf" preload="open"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code to my COPYLocateWidget_NA.xml within my widgets folder is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;configuration label="North American Geocoding"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;locator&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer" rel="nofollow" target="_blank"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/locator&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;minscore&amp;gt;40&amp;lt;/minscore&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fields&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;field name="City" defaultvalue="Helena" editable="false" /&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;field name="Zip" defaultvalue="59601" listvalues="59601" /&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;field name="Zip4" visible="false" /&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;field name="State" defaultvalue="MT" visible="false" /&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;field name="Country" defaultvalue="USA" visible="false" /&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fields&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;zoomscale&amp;gt;10000&amp;lt;/zoomscale&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/configuration&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; See Locate widget tag reference at&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://links.esri.com/locatewidget"&gt;http://links.esri.com/locatewidget&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pleas Point me in the right direction making it work?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 19:04:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/geocoding-question/m-p/655990#M19446</guid>
      <dc:creator>NancyGnanicys</dc:creator>
      <dc:date>2012-10-26T19:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Geocoding Question</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/geocoding-question/m-p/655991#M19447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What I am confused about is, when I add in using the Viewer for Flex 3.0 user interface and then preview it, it gives me only one line&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;If the service supports a single line input (like the one you are using), then the widget will default to use that (single line input).&amp;nbsp; Unless you specify the following in your locate widget xml file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;usesingleline&amp;gt;false&amp;lt;/usesingleline&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Locate_widget_tags/01m30000000r000000/"&gt;http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Locate_widget_tags/01m30000000r000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 21:56:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/geocoding-question/m-p/655991#M19447</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2012-10-26T21:56:55Z</dc:date>
    </item>
  </channel>
</rss>

