Select to view content in your preferred language

identify button in Banner to call identify function from identifyWidget

673
1
10-25-2010 04:08 AM
sobarim-amin
Emerging Contributor
Dear All,

I want to put an identify button in the Banner and call the activateIdentifyTool() function fromIdentifyWidget.mxml.

Anybody know how to do it, please share?

Thanks
Sobari
Tags (2)
0 Kudos
1 Reply
sobarim-amin
Emerging Contributor
All,

This is what I tried so far...but still fail to work.

I put below code inside Banner.mxml

private var configData:ConfigData;
private var myInfoWidget:Object;
  
private function setConfigdata(event:AppEvent):void
{
configData = event.data as ConfigData;
myInfoWidget=getWidgetLabel("Identify");   
}
  
private function getWidgetLabel(widgetLabel:String):Object
{
       var Widget:Object;
       for (var i:Number = 0; i < configData.configWidgets.length; i++)
{
     if (configData.configWidgets.label == widgetLabel)
            Widget = configData.configWidgets;
}
       return Widget;
}

private function SetIdentify():void
{   
myInfoWidget.activateIdentifyTool;  
        
}


The above SetIdentify function did not do anything.

FYI, I am still using older version of Flexviewer and API (agslib-1.2.swc).

Please advice

Regards,
Sobari
0 Kudos