<?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: Can I reset it after HeaderController icon clicked again? in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-can-i-reset-it-after/m-p/190096#M5830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again Robert, you've helped me a lot over the past week or so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works perfectly when the widget is closed and the icon is clicked to re-open it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it looks like the event isn't fired when the widget is already loaded.&amp;nbsp; Is there another event that might work??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2012 16:12:03 GMT</pubDate>
    <dc:creator>BlaiseMacLean</dc:creator>
    <dc:date>2012-08-09T16:12:03Z</dc:date>
    <item>
      <title>Search Widget: Can I reset it after HeaderController icon clicked again?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-can-i-reset-it-after/m-p/190094#M5828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my config.xml the Search widget is set to - preload="open"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the user enters some criteria and gets a match then it switches to the State = resultsList.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the user clicks the search icon up in the Header control is there an event that gets fired in the Search widget?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to switch back to "textInput" mode and clear the text box so they're ready to do another search.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Blaise&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 15:38:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-can-i-reset-it-after/m-p/190094#M5828</guid>
      <dc:creator>BlaiseMacLean</dc:creator>
      <dc:date>2012-08-09T15:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget: Can I reset it after HeaderController icon clicked again?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-can-i-reset-it-after/m-p/190095#M5829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Blaise,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Sure in the SearchWidget.mxml you will find a function called widgetOpenedHandler this function gets called each time the widget get displayed. So that you be a great place to add some code like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;this.currentState = "textInput";
txtSearch.text = "";&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; on this post and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Follow the steps&lt;/STRONG&gt;&lt;SPAN&gt; as shown in the below graphic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:34:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-can-i-reset-it-after/m-p/190095#M5829</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T09:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget: Can I reset it after HeaderController icon clicked again?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-can-i-reset-it-after/m-p/190096#M5830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again Robert, you've helped me a lot over the past week or so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works perfectly when the widget is closed and the icon is clicked to re-open it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it looks like the event isn't fired when the widget is already loaded.&amp;nbsp; Is there another event that might work??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 16:12:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-can-i-reset-it-after/m-p/190096#M5830</guid>
      <dc:creator>BlaiseMacLean</dc:creator>
      <dc:date>2012-08-09T16:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget: Can I reset it after HeaderController icon clicked again?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-can-i-reset-it-after/m-p/190097#M5831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Blaise,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; No there is not an event that gets fired if the widget is already opened. In the WidgetItemDataGroupRenderer.mxml of the HeaderControllerWidget, the itemrenderer_clickHandler checks if the widget is open and if it is then it does not fire the WIDGET_ITEM_CLICK event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 16:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-can-i-reset-it-after/m-p/190097#M5831</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-08-09T16:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget: Can I reset it after HeaderController icon clicked again?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-can-i-reset-it-after/m-p/190098#M5832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a work around I added a Clear button to the resultsList statte.&amp;nbsp; It clears the search textbox and goes back to the textInput state.&amp;nbsp; I was just trying to make sure an inexperienced user can find their way back to the textInput.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your help Robert.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Blaise&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 17:34:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-can-i-reset-it-after/m-p/190098#M5832</guid>
      <dc:creator>BlaiseMacLean</dc:creator>
      <dc:date>2012-08-09T17:34:41Z</dc:date>
    </item>
  </channel>
</rss>

