<?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: Call a function on eSearch from a popup button click in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/call-a-function-on-esearch-from-a-popup-button/m-p/750652#M22553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Sep 2013 17:38:51 GMT</pubDate>
    <dc:creator>MayJeff</dc:creator>
    <dc:date>2013-09-18T17:38:51Z</dc:date>
    <item>
      <title>Call a function on eSearch from a popup button click</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/call-a-function-on-esearch-from-a-popup-button/m-p/750648#M22549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created an extra button on popup infowindow (PopUpRendererSkin.mxml).&amp;nbsp; How do you call a getLocateGra() function on eSearch when user click a button on popup infowindow instead of click the icon on eSearch widget?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 12:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/call-a-function-on-esearch-from-a-popup-button/m-p/750648#M22549</guid>
      <dc:creator>MayJeff</dc:creator>
      <dc:date>2013-09-18T12:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Call a function on eSearch from a popup button click</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/call-a-function-on-esearch-from-a-popup-button/m-p/750649#M22550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;May Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Put this code in the buttons click handler. Of course you will have to change the getLocateGra function from private to public for this to work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var id:Number = ViewerContainer.getInstance().widgetManager.getWidgetId("Enhanced Search");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var bWidget2:IBaseWidget;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bWidget2 = ViewerContainer.getInstance().widgetManager.getWidget(id, false);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var eSearch:* = bWidget2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eSearch.getLocateGra();&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:52:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/call-a-function-on-esearch-from-a-popup-button/m-p/750649#M22550</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T07:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Call a function on eSearch from a popup button click</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/call-a-function-on-esearch-from-a-popup-button/m-p/750650#M22551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much for the code but I have some questions about the click button handler on my popup infowindow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When first click, it will open esearch widget but you have to click again in order to call getLocateGra() function to highlight a polygon. Is possible when you click the button, it will call getLocateGra() function for highlighting a polygon?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 16:03:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/call-a-function-on-esearch-from-a-popup-button/m-p/750650#M22551</guid>
      <dc:creator>MayJeff</dc:creator>
      <dc:date>2013-09-18T16:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Call a function on eSearch from a popup button click</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/call-a-function-on-esearch-from-a-popup-button/m-p/750651#M22552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;May Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; If that widget has to be opened first then it is not ready to receive the getLocateGra function request. You will have to figure out a way to delay the getLocateGra function request until the widget is opened and ready. This is not something simple that I have time to provide an example for but it can be accomplished by understanding the widget communication model. Here is a link to my &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/attachment.php?attachmentid=8788&amp;amp;d=1315338310" rel="nofollow" target="_blank"&gt;Widget Communication Explained&lt;/A&gt;&lt;SPAN&gt;.pdf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 17:23:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/call-a-function-on-esearch-from-a-popup-button/m-p/750651#M22552</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-09-18T17:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Call a function on eSearch from a popup button click</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/call-a-function-on-esearch-from-a-popup-button/m-p/750652#M22553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 17:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/call-a-function-on-esearch-from-a-popup-button/m-p/750652#M22553</guid>
      <dc:creator>MayJeff</dc:creator>
      <dc:date>2013-09-18T17:38:51Z</dc:date>
    </item>
  </channel>
</rss>

