Hi,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
var data:Object = {
query1:(populationIndex.toString())
}
ViewerContainer.dispatchEvent( new AppEvent("newQuery",data));
I can receive this in Mapmanager.mxml pretty easily by ViewerContainer.addEventListener("newQuery", func1);
Now I want the same newquery string in the Identify widget so that it can be applied as identifyParams.layerDefinitions= defQuery;
However, when I use the same code i.e ViewerContainer.addEventListener("newQuery", func1);
in Identify Widget's init() function 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 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?