<?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: Running an MXML widget from another MXML widget in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24867#M564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can this be done by just hard coding the widget id I want to open to a buttons click event? I don't need to do anything that automatically determines an id.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2010 21:33:22 GMT</pubDate>
    <dc:creator>BillBass</dc:creator>
    <dc:date>2010-12-11T21:33:22Z</dc:date>
    <item>
      <title>Running an MXML widget from another MXML widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24862#M559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an Identify widget and a Search widget in a single flex application. The process is that the user performs a search for point features using the search widget, which places a graphic layer on top of points that meet the search criteria. The user can then use the Identify widget to click on those points to get information. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of the user having to look for the idenify tool in the menu, I would rather have a button in the Search widget window that the user can click on to open the Identify widget. I have seen some posts related to mxmls calling other mxmls, but I think they are performing more complex operations that what I am trying to do. I am just trying to setup an alterntive method to opening an existing widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attaching a zip file with the two MXML widget files for Identify and Search. The Identify MXML also has a configuraton xml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 01:12:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24862#M559</guid>
      <dc:creator>BillBass</dc:creator>
      <dc:date>2010-12-10T01:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MXML widget from another MXML widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24863#M560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bill,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; From the calling widget use this code once you determine the widgets Id Number&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Widgets are assigned a sequential number as they are loaded in the Viewer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you have three widgets then your widgets id would be 0, 1, or 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;SiteContainer.dispatchEvent(new AppEvent(AppEvent.WIDGET_MENU_CLICKED, false, false, 1));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would normally suggest using a function that would return the widgets id number based off of the widgets label, but is sounds like you are wanting to keep things pretty simple.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if you are intrested then here is the code that needs to be added to your SiteContainer.mxml&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;//Add this to the private declarations
private var configData:ConfigData;

//This goes in the SiteContainer Init function
//listen for the config data to be loaded
SiteContainer.addEventListener(AppEvent.CONFIG_LOADED, config);

//Add these functions any where 
private function config(event:AppEvent):void
{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 configData = event.data as ConfigData;
}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
public function getWidgetId(widgetLabel:String):Number
{
 var id:Number;
 for (var i:Number = 0; i &amp;lt; configData.configWidgets.length; i++)
 {
&amp;nbsp; if (configData.configWidgets&lt;I&gt;.label == widgetLabel)
&amp;nbsp;&amp;nbsp; id = configData.configWidgets&lt;I&gt;.id;
 }
 return id;
}

//then you can use it like this in your code
var id:Number = SiteContainer.getInstance().getWidgetId("Identify");
SiteContainer.dispatchEvent(new AppEvent(AppEvent.WIDGET_MENU_CLICKED, false, false, id));&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:00:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24863#M560</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-10T21:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MXML widget from another MXML widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24864#M561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I put the code in the Site Container.mxml as suggested. But having issues with the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var id:Number = SiteContainer.getInstance().getWidgetId(5);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume I am to put the widgetId in place of the "identify" text you specified. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then added the following to a button:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;mx:Button label="Id Tool" click="SiteContainer.dispatchEvent(new AppEvent(AppEvent.WIDGET_MENU_CLICKED, false, false, id))"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the following error that is tied to the first line of code above:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1152: A conflict exists with inherited definition mx.core:UIComponent.id in namespace public mx.core:IDeferredInstantiationUIComponent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I missing here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2010 21:11:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24864#M561</guid>
      <dc:creator>BillBass</dc:creator>
      <dc:date>2010-12-11T21:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MXML widget from another MXML widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24865#M562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bill,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Actually the whole purpose of that function is to get the widgets I'd number for you from the widgets label. So enter the label of the widget as you named it in the main config.xml&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2010 21:24:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24865#M562</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-12-11T21:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MXML widget from another MXML widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24866#M563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Still not working. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I have in my config.xml for the Identify Widget:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;widget label="Identify Features" icon="com/esri/solutions/flexviewer/assets/images/icons/i_info.png" menu="menuWidgets" config="com/esri/solutions/flexviewer/widgets/IdentifyWidget.xml" shortcutmenu="true"&amp;gt;com/esri/solutions/flexviewer/widgets/IdentifyWidget.swf&amp;lt;/widget&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I have in the Site Container.mxml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;private var configData:ConfigData;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This was added to the init() function in the Site Container.mxml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SiteContainer.addEventListener(AppEvent.CONFIG_LOADED, config);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is in the Site Container.mxml as new functions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;private function config(event:AppEvent):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;configData = event.data as ConfigData;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public function getWidgetId(widgetLabel:String):Number&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var id:Number;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for (var i:Number = 0; i &amp;lt; configData.configWidgets.length; i++)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (configData.configWidgets&lt;I&gt;.label == widgetLabel)&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;id = configData.configWidgets&lt;I&gt;.id;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;return id;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is in the widget MXML file that will be calling the identify tool:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var id:Number = SiteContainer.getInstance().getWidgetId("Identify Features");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;mx:Button label="Id Tool" click="SiteContainer.dispatchEvent(new AppEvent(AppEvent.WIDGET_MENU_CLICKED, false, false, id))"/&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2010 21:31:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24866#M563</guid>
      <dc:creator>BillBass</dc:creator>
      <dc:date>2010-12-11T21:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MXML widget from another MXML widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24867#M564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can this be done by just hard coding the widget id I want to open to a buttons click event? I don't need to do anything that automatically determines an id.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2010 21:33:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24867#M564</guid>
      <dc:creator>BillBass</dc:creator>
      <dc:date>2010-12-11T21:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MXML widget from another MXML widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24868#M565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bill,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Yep, you can hardcode it if you want.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2010 21:38:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24868#M565</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-12-11T21:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MXML widget from another MXML widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24869#M566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How would I hard code it? I believe the widget id is '5'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2010 21:41:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24869#M566</guid>
      <dc:creator>BillBass</dc:creator>
      <dc:date>2010-12-11T21:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MXML widget from another MXML widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24870#M567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bill,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Look back at my first response to you and the first code block use that and just replace the number 1 with 5&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2010 21:45:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24870#M567</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-12-11T21:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MXML widget from another MXML widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24871#M568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So where do I put that inside the button tag? Sorry, I am just confused at this point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what I have for the button. I don't have any other code added to my project, just this now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;mx:Button id="test" click="SiteContainer.dispatchEvent(new AppEvent(AppEvent.WIDGET_MENU_CLICKED, false, false, 5))"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I save I get the following errors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Access of undefined property AppEvent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Access of undefined property SiteContainer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Call to a possibly undefined method AppEvent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2010 21:55:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24871#M568</guid>
      <dc:creator>BillBass</dc:creator>
      <dc:date>2010-12-11T21:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MXML widget from another MXML widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24872#M569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bill,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I am replying from by blackberry so I don't have the code in front of me so I can not give exacts be all you need to do is in your widget is add import statements for the SiteContainer and AppEvent &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import com.esri.viewer.AppEvent;
Import com.esri.viewer.SiteContainer&lt;/PRE&gt;&lt;SPAN&gt; once again I and writing that code from memory.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:00:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24872#M569</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-10T21:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MXML widget from another MXML widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24873#M570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again. When I add the two import statements to the widget that is trying to call the identify tool, I get the following errors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Definition com.esri.viewer:AppEvent could not be found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Definition com.esri.viewer:SiteContainer could not be found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So this must be something new to the 2.0 API, as I am still on 1.3. So I guess this isn't going to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2010 22:17:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24873#M570</guid>
      <dc:creator>BillBass</dc:creator>
      <dc:date>2010-12-11T22:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MXML widget from another MXML widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24874#M571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bill,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Like I said I am doing this from memory, so you have to do some work on your end and search the code for the exact import statement. This is not something new for 2.x . I would look in the MapManager to find the exact import statements that you need to use as I obviously don't recall the exact text from memory.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2010 22:35:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24874#M571</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-12-11T22:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MXML widget from another MXML widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24875#M572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok. I finally got it. The import statements for the 1.3 API are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import com.esri.solutions.flexviewer.AppEvent;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import com.esri.solutions.flexviewer.SiteContainer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I added those to the MXML of the widget that contains the button to launch the identify tool, and the MXML for the button is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;mx:Button id="idButton" label="Identify Features" click="SiteContainer.dispatchEvent(new AppEvent(AppEvent.WIDGET_MENU_CLICKED, false, false, 5))"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again and I appreciate your patience with someone new to Flex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bill&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2010 22:48:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24875#M572</guid>
      <dc:creator>BillBass</dc:creator>
      <dc:date>2010-12-11T22:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MXML widget from another MXML widget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24876#M573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for this snippet of code.&amp;nbsp; I was looking for the same functionality and it works great.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 15:36:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/running-an-mxml-widget-from-another-mxml-widget/m-p/24876#M573</guid>
      <dc:creator>RickyGonzalez</dc:creator>
      <dc:date>2011-02-17T15:36:09Z</dc:date>
    </item>
  </channel>
</rss>

