<?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 Send query data to Identify widget from Layer list widget in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/send-query-data-to-identify-widget-from-layer-list/m-p/749274#M22507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have few buttons in Layerlist widget which sends a new query request via dynamic layer layerdefinition to get a new map. For this I have&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
var data:Object = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query1:(populationIndex.toString())
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
ViewerContainer.dispatchEvent( new AppEvent("newQuery",data));
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can receive this in Mapmanager.mxml pretty easily by &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;ViewerContainer.addEventListener("newQuery", func1);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I want the same newquery string in the Identify widget so that it can be applied as &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;identifyParams.layerDefinitions= defQuery;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;&amp;nbsp; However, when I use the same code i.e&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;ViewerContainer.addEventListener("newQuery", func1);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; in Identify Widget's init() function&amp;nbsp; it does not seem to get the new string. I believe this is because the widget is still closed and could not listen to the event. When the widget is open it works fine. How can i get this work even when the Identify widget is closed so that it can reserve the new query string&amp;nbsp; until its open and used. I think once its open it can listen and there will be no issue. How can it listen in its closed state?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2012 18:10:37 GMT</pubDate>
    <dc:creator>SaugatJoshi</dc:creator>
    <dc:date>2012-02-23T18:10:37Z</dc:date>
    <item>
      <title>Send query data to Identify widget from Layer list widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/send-query-data-to-identify-widget-from-layer-list/m-p/749274#M22507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have few buttons in Layerlist widget which sends a new query request via dynamic layer layerdefinition to get a new map. For this I have&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
var data:Object = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query1:(populationIndex.toString())
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
ViewerContainer.dispatchEvent( new AppEvent("newQuery",data));
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can receive this in Mapmanager.mxml pretty easily by &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;ViewerContainer.addEventListener("newQuery", func1);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I want the same newquery string in the Identify widget so that it can be applied as &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;identifyParams.layerDefinitions= defQuery;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;&amp;nbsp; However, when I use the same code i.e&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;ViewerContainer.addEventListener("newQuery", func1);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; in Identify Widget's init() function&amp;nbsp; it does not seem to get the new string. I believe this is because the widget is still closed and could not listen to the event. When the widget is open it works fine. How can i get this work even when the Identify widget is closed so that it can reserve the new query string&amp;nbsp; until its open and used. I think once its open it can listen and there will be no issue. How can it listen in its closed state?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 18:10:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/send-query-data-to-identify-widget-from-layer-list/m-p/749274#M22507</guid>
      <dc:creator>SaugatJoshi</dc:creator>
      <dc:date>2012-02-23T18:10:37Z</dc:date>
    </item>
  </channel>
</rss>

