Robert,
I am facing problem in setting LayerDefinitions parameter in IdentifyWidget from another widget(say ABC).
*********************************************************************
In ABCwidget -
calling addSharedData("DefinitionQuery",QArrayCollection);
In IdentifyWidget-
In init() function-
ViewerContainer.addEventListener(AppEvent.DATA_NEW_PUBLISHED, sharedDataUpdated);
fetchSharedData();
Also added definition for sharedDataUpdated() which is assigning "DefinitionQuery" to arrdefQ (Array)
In identifyFeatures()
identifyParams.layerDefinitions=arrdefQ;
*********************************************************************
The problem is -
For the first time when Identify is invoked,the value of the defQuery from the sharedDataUpdated() is blank.Its seems that identifyFeatures() is called first then sharedDataUpdated();
However after that it work perfectly okay.
I am really stuck on this and need your suggestion.
Lu.