<?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: Automatic Search from HTML in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/automatic-search-from-html/m-p/640891#M14233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;FYI for anyone who comes across this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I made the following changes to the Locate widget to allow a search to be done from a URL like this - &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/www.gisviewer.something.nz/?3453453" target="_blank"&gt;www.gisviewer.something.nz/?3453453&lt;/A&gt;&lt;SPAN&gt; This will search for that valuation number when the viewer loads.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var browserUrl:String = ExternalInterface.call("window.location.href.toString");
&amp;nbsp;&amp;nbsp;&amp;nbsp; var urlArray:Array = browserUrl.split("?")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var locatefURL:String = urlArray[1];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; singleAddressTextItem.text = locatefURL; &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and then added a timer to the init()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var exTimer:Timer = new Timer(1000, 1);
&amp;nbsp; exTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exTimer.start();
&amp;nbsp;&amp;nbsp; 
 public function onTimerComplete(event:TimerEvent):void
 {
 locateIfAddressFieldInputValid();
 }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 03:14:20 GMT</pubDate>
    <dc:creator>ShaunWeston</dc:creator>
    <dc:date>2021-12-12T03:14:20Z</dc:date>
    <item>
      <title>Automatic Search from HTML</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/automatic-search-from-html/m-p/640889#M14231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm just wondering if it's possible to automatically send a string to a search/locate widget from the URL. e.g. gis.map.nz/Viewer?1821040200 - going to this URL will go the flex viewer I have setup and automatically search for that property number.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see you can through the REST API - GeocodeServer/findAddressCandidates?SingleKey=1821040200, but not sure how to do that through the actual application?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 07:10:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/automatic-search-from-html/m-p/640889#M14231</guid>
      <dc:creator>ShaunWeston</dc:creator>
      <dc:date>2011-10-25T07:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Search from HTML</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/automatic-search-from-html/m-p/640890#M14232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shaun,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; You are posting to the wrong forum. Flex Viewer and Widget questions need to be posted to the Flex Viewer forum:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex"&gt;http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Enhanced Search Widget allows you to search a layer automatically from the URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e"&gt;http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 11:07:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/automatic-search-from-html/m-p/640890#M14232</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-10-25T11:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Search from HTML</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/automatic-search-from-html/m-p/640891#M14233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;FYI for anyone who comes across this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I made the following changes to the Locate widget to allow a search to be done from a URL like this - &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/www.gisviewer.something.nz/?3453453" target="_blank"&gt;www.gisviewer.something.nz/?3453453&lt;/A&gt;&lt;SPAN&gt; This will search for that valuation number when the viewer loads.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var browserUrl:String = ExternalInterface.call("window.location.href.toString");
&amp;nbsp;&amp;nbsp;&amp;nbsp; var urlArray:Array = browserUrl.split("?")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var locatefURL:String = urlArray[1];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; singleAddressTextItem.text = locatefURL; &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and then added a timer to the init()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var exTimer:Timer = new Timer(1000, 1);
&amp;nbsp; exTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exTimer.start();
&amp;nbsp;&amp;nbsp; 
 public function onTimerComplete(event:TimerEvent):void
 {
 locateIfAddressFieldInputValid();
 }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:14:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/automatic-search-from-html/m-p/640891#M14233</guid>
      <dc:creator>ShaunWeston</dc:creator>
      <dc:date>2021-12-12T03:14:20Z</dc:date>
    </item>
  </channel>
</rss>

