Select to view content in your preferred language

How to open a widget (in a placeholder) programmatically ?

5476
14
Jump to solution
10-22-2015 02:07 AM
MathieuVILLEMONT1
Deactivated User

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 ?

I've tried using the WidgetManager openWidget(widget) followed by PanelManager showPanel() functions but it only works if the widget has already been opened once before (manually).

Tags (2)
0 Kudos
14 Replies
LefterisKoumis
Frequent Contributor

I am using the launchpad and I wanted have the buffer widget along the attribute table open  at the same time. As you change the parameters in the buffer widget, the attribute table would update accordingly. Possible?

0 Kudos
JamesCrandall
MVP Frequent Contributor

Dumb question: how do I add PanelManager as a reference to my ScaleBar widget?  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.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

James,

  You just add the require for 'jimu/PanelManager' to the require list.

RobertScheitlin__GISP
MVP Emeritus

Mathieu,

   Did my reply not answer your question?

0 Kudos
MathieuVILLEMONT1
Deactivated User

Yes it did ! I thought I marked it as resolved... Still making my way through GeoNet

0 Kudos