<?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 How to open a widget from a controller programmatically ? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-from-a-controller/m-p/532581#M13889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Opening a widget from a placeholder can be done using PanelManager's &lt;SPAN style="font-family: 'courier new', courier;"&gt;showPanel &lt;/SPAN&gt;method. However what if the widget is located in a controller ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far the only solution I found is to call the controller's method which open a given widget :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="keyword"&gt;&lt;/SPAN&gt;var controller = &lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;WidgetManager.getInstance()&lt;/SPAN&gt;.getWidgetsByName('MyThemeController');
&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;controller.&lt;/SPAN&gt;openWidget(widgetConfig);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with this solution is that not every theme controller implement such method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 23:09:45 GMT</pubDate>
    <dc:creator>MathieuVILLEMONT1</dc:creator>
    <dc:date>2021-12-11T23:09:45Z</dc:date>
    <item>
      <title>How to open a widget from a controller programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-from-a-controller/m-p/532581#M13889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Opening a widget from a placeholder can be done using PanelManager's &lt;SPAN style="font-family: 'courier new', courier;"&gt;showPanel &lt;/SPAN&gt;method. However what if the widget is located in a controller ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far the only solution I found is to call the controller's method which open a given widget :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="keyword"&gt;&lt;/SPAN&gt;var controller = &lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;WidgetManager.getInstance()&lt;/SPAN&gt;.getWidgetsByName('MyThemeController');
&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;controller.&lt;/SPAN&gt;openWidget(widgetConfig);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with this solution is that not every theme controller implement such method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:09:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-from-a-controller/m-p/532581#M13889</guid>
      <dc:creator>MathieuVILLEMONT1</dc:creator>
      <dc:date>2021-12-11T23:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget from a controller programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-from-a-controller/m-p/532582#M13890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mathieu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The only thing I can think of is you will have to develop a function that has a switch case based on the theme, if you are looking for a function that can open a widget irrelevant of the theme in use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 12:51:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-from-a-controller/m-p/532582#M13890</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-10-26T12:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget from a controller programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-from-a-controller/m-p/532583#M13891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&amp;nbsp; so far this seems to be the only solution. The other one being to add a custom method to each theme.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 16:27:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-from-a-controller/m-p/532583#M13891</guid>
      <dc:creator>MathieuVILLEMONT1</dc:creator>
      <dc:date>2015-10-26T16:27:53Z</dc:date>
    </item>
  </channel>
</rss>

