<?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: How to open a widget (in a placeholder) programmatically ? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535628#M14094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I just tried these two lines of code again and they worked flawlessly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var pm = PanelManager.getInstance();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pm.showPanel(this.appConfig.widgetOnScreen.widgets[4]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Nov 2015 20:16:22 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2015-11-12T20:16:22Z</dc:date>
    <item>
      <title>How to open a widget (in a placeholder) programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535621#M14087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Web Appbuilder Developer Edition, say I want to open a widget which is not in a controller but in a place holder. How can I manage that ?&lt;/P&gt;&lt;P&gt;I've tried using the WidgetManager &lt;SPAN style="font-family: 'courier new', courier;"&gt;openWidget(widget)&lt;/SPAN&gt; followed by PanelManager &lt;SPAN style="font-family: 'courier new', courier;"&gt;showPanel()&lt;/SPAN&gt; functions but it only works if the widget has already been opened once before (manually).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 09:07:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535621#M14087</guid>
      <dc:creator>MathieuVILLEMONT1</dc:creator>
      <dc:date>2015-10-22T09:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget (in a placeholder) programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535622#M14088</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; I have no problem at all opening a widget in a onscreen placeholder that has not been opened yet using these two lines of code only from inside another widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var pm = PanelManager.getInstance();
pm.showPanel(this.appConfig.widgetOnScreen.widgets[4]);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:16:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535622#M14088</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T23:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget (in a placeholder) programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535623#M14089</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; Did my reply not answer your question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 13:50:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535623#M14089</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-10-26T13:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget (in a placeholder) programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535624#M14090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it did ! I thought I marked it as resolved... Still making my way through GeoNet &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 16:31:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535624#M14090</guid>
      <dc:creator>MathieuVILLEMONT1</dc:creator>
      <dc:date>2015-10-26T16:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget (in a placeholder) programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535625#M14091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for on screen widget that is not visible and not started, I tried this but it does not open the widget&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var wm =WidgetManager.getInstance();&lt;/P&gt;&lt;P&gt;wm.openWidget("widgets_BufferSelection_53");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The widgets_BufferSelection_53 is the widget id as identified in the config.json&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 17:44:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535625#M14091</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2015-11-12T17:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget (in a placeholder) programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535626#M14092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Did you try that code that is marker as the answer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 19:34:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535626#M14092</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-12T19:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget (in a placeholder) programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535627#M14093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I did. It never open the widget. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 19:48:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535627#M14093</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2015-11-12T19:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget (in a placeholder) programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535628#M14094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I just tried these two lines of code again and they worked flawlessly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var pm = PanelManager.getInstance();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pm.showPanel(this.appConfig.widgetOnScreen.widgets[4]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 20:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535628#M14094</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-12T20:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget (in a placeholder) programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535629#M14095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm. I am wondering what do I do wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;config.json:&lt;/P&gt;&lt;P&gt;"widgetOnScreen": {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "widgets": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "uri": "widgets/BufferSelection/Widget",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "version": "1.3",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": "widgets_BufferSelection_53",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "BufferSelection",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "label": "Buffer Selection",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "openAtStart": false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;widget.js of another widget that calls the Buffer Selection&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;var pm = PanelManager.getInstance(); &lt;/P&gt;&lt;P&gt; pm.showPanel(this.appConfig.widgetOnScreen.widgets["widgets_BufferSelection_53"]);&amp;nbsp; &lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I get the error:&lt;/P&gt;&lt;P&gt;Cannot read property 'id' of undefined for the second line above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 21:24:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535629#M14095</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2015-11-12T21:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget (in a placeholder) programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535630#M14096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Because the pm.showPanel function is expecting the the whole widget configuration object and this.appConfig.widgetOnScreen.widgets["widgets_BufferSelection_53"] is not doing that. what is the index (i.e. postilion number) of the widgets_BufferSelection_53 in the widgetOnScreen widget array?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you figure that out then use that number as below:&lt;/P&gt;&lt;P&gt;pm.showPanel(this.appConfig.widgetOnScreen.widgets[0]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 21:38:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535630#M14096</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-12T21:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget (in a placeholder) programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535631#M14097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A childish mistake. I assumed that the parameter in the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;this.appConfig.widgetOnScreen.widgets is the widget id and I didn't notice the array.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Yes, it works now. However, when the Buffer Selection widget opens it closes the widget that calls it. How can I retain both widgets visible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 21:47:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535631#M14097</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2015-11-12T21:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget (in a placeholder) programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535632#M14098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Depends on the theme you are using. Most themes are only permited to have on widget open at a time. But the Launchpad theme allows for multiple to be open and you can have a on screen and a widget in the side panel of the foldable theme open at the same time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 21:57:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535632#M14098</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-12T21:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget (in a placeholder) programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535633#M14099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the launchpad and I wanted have the buffer widget along the attribute table open&amp;nbsp; at the same time. As you change the parameters in the buffer widget, the attribute table would update accordingly. Possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 22:19:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535633#M14099</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2015-11-12T22:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget (in a placeholder) programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535634#M14100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dumb question: how do I add PanelManager as a reference to my ScaleBar widget?&amp;nbsp; I'm attempting to open another widget at index (2) when the ScaleBar widget loads but getting "fail to startup widget Scalebar. ReferenceError: PanelManager is not defined" error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 14:32:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535634#M14100</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2018-05-11T14:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a widget (in a placeholder) programmatically ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535635#M14101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&amp;nbsp; You just add the require for 'jimu/PanelManager' to the require list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 14:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-open-a-widget-in-a-placeholder/m-p/535635#M14101</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-05-11T14:45:27Z</dc:date>
    </item>
  </channel>
</rss>

