<?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 Opening and closing panels through Programmatically in WAB for Box theme is not working in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/opening-and-closing-panels-through/m-p/499677#M13107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to open the other panel and closing the current panel by using the below code, which is working for Foldable theme in WAB but not working for Box theme correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var pm = PanelManager.getInstance();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; var layerListWidget = null; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; layerListWidget = pm.widgetManager.appConfig.widgetPool.widgets[0]; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; PanelManager.getInstance().closePanel(this.id + "_panel");&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; PanelManager.getInstance().showPanel(layerListWidget);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do anyone have any idea, how to achieve this for Box Theme?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2019 05:54:03 GMT</pubDate>
    <dc:creator>Naveen_KumarKairamkonda</dc:creator>
    <dc:date>2019-10-25T05:54:03Z</dc:date>
    <item>
      <title>Opening and closing panels through Programmatically in WAB for Box theme is not working</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/opening-and-closing-panels-through/m-p/499677#M13107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to open the other panel and closing the current panel by using the below code, which is working for Foldable theme in WAB but not working for Box theme correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var pm = PanelManager.getInstance();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; var layerListWidget = null; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; layerListWidget = pm.widgetManager.appConfig.widgetPool.widgets[0]; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; PanelManager.getInstance().closePanel(this.id + "_panel");&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; PanelManager.getInstance().showPanel(layerListWidget);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do anyone have any idea, how to achieve this for Box Theme?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 05:54:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/opening-and-closing-panels-through/m-p/499677#M13107</guid>
      <dc:creator>Naveen_KumarKairamkonda</dc:creator>
      <dc:date>2019-10-25T05:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Opening and closing panels through Programmatically in WAB for Box theme is not working</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/opening-and-closing-panels-through/m-p/499678#M13108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You need to do this through the BoxController. Use the setOpenedIds method, it handles closing opened widget and opening the one you want opened.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; bc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; WidgetManager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getInstance&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getWidgetsByName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"BoxController"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍
bc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setOpenedIds&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;layerListWidget&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;id&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:56:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/opening-and-closing-panels-through/m-p/499678#M13108</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T21:56:51Z</dc:date>
    </item>
  </channel>
</rss>

