<?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: Open Widget with Button from within another Widget? in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-widget-with-button-from-within-another-widget/m-p/416994#M11880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Robert!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running into a slightly more obtuse situation that I haven't been able to solve with either your solution or DOM calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the 'About' Widget and, within the widget's&amp;nbsp;content-pane I have create buttons using &amp;lt;div&amp;gt; elements. I was hoping that a user would be able to click on a button from the panel and the widget launches -- unfortunately, since I'm basically editing the innerHTML of an element, I was able to get your solution working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then looked into some document.getElementBy... operations but it appears that div classes in WAB use settingid, not id and the classes change depending on whether the element is in focus, so I wasn't able to push a nested JS function that would simulate clicking the appropriate widget's icon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how I could open a widget using an html button within the About widget?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2018 19:02:30 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-05-23T19:02:30Z</dc:date>
    <item>
      <title>Open Widget with Button from within another Widget?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-widget-with-button-from-within-another-widget/m-p/416991#M11877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i have a parcel search widget that within the results I would like to click the button and have it pull up my print widget so that it eliminates a step that the public will have to do.&amp;nbsp; Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 14:36:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-widget-with-button-from-within-another-widget/m-p/416991#M11877</guid>
      <dc:creator>PaulMcBride</dc:creator>
      <dc:date>2011-12-06T14:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Open Widget with Button from within another Widget?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-widget-with-button-from-within-another-widget/m-p/416992#M11878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Just call this from your button click event:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;AppEvent.dispatch(AppEvent.WIDGET_RUN,ViewerContainer.getInstance().widgetManager.getWidgetId("yourPrintWidget"));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;of course you will need these imports in your widget if you don't have them already:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import com.esri.viewer.AppEvent;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import com.esri.viewer.ViewerContainer;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:52:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-widget-with-button-from-within-another-widget/m-p/416992#M11878</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T18:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Open Widget with Button from within another Widget?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-widget-with-button-from-within-another-widget/m-p/416993#M11879</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;Thank your for the continued help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 17:44:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-widget-with-button-from-within-another-widget/m-p/416993#M11879</guid>
      <dc:creator>PaulMcBride</dc:creator>
      <dc:date>2011-12-06T17:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Open Widget with Button from within another Widget?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-widget-with-button-from-within-another-widget/m-p/416994#M11880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Robert!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running into a slightly more obtuse situation that I haven't been able to solve with either your solution or DOM calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the 'About' Widget and, within the widget's&amp;nbsp;content-pane I have create buttons using &amp;lt;div&amp;gt; elements. I was hoping that a user would be able to click on a button from the panel and the widget launches -- unfortunately, since I'm basically editing the innerHTML of an element, I was able to get your solution working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then looked into some document.getElementBy... operations but it appears that div classes in WAB use settingid, not id and the classes change depending on whether the element is in focus, so I wasn't able to push a nested JS function that would simulate clicking the appropriate widget's icon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how I could open a widget using an html button within the About widget?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 19:02:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-widget-with-button-from-within-another-widget/m-p/416994#M11880</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-05-23T19:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Open Widget with Button from within another Widget?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-widget-with-button-from-within-another-widget/m-p/416995#M11881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You are posting in the Obsolete Flex Viewer forum. It would be best for you to search the WAB forums for launching a widget from another widget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 19:14:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-widget-with-button-from-within-another-widget/m-p/416995#M11881</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-05-23T19:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Open Widget with Button from within another Widget?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-widget-with-button-from-within-another-widget/m-p/416996#M11882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't even realize they still had these old flex forums up!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will do and good call!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 19:21:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-widget-with-button-from-within-another-widget/m-p/416996#M11882</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-05-23T19:21:18Z</dc:date>
    </item>
  </channel>
</rss>

