<\/HEAD>
In certain cases, it may be desirable to open another widget or multiple other widgets from within your own widget in a Web App. That is, for example, in one widget there is a button that opens another widget when clicked, as shown in the following illustration:<\/P>
<\/P>
By clicking the button in the first widget, the second widget then opens:<\/P>
<\/P>
To achieve this, a button with a corresponding icon must first be created in the first widget. For example, you can create the button in the file Widget.js in the startup() method as follows:<\/P>
<\/P>
Here, an HTML DIV element and an IMG element contained within it are dynamically created using DoJo functions. In an event handler method, clicking the button is responded to and a function is called that calls the second widget:<\/P>
<\/P>
First, the widget configuration of the widget to be opened is determined here, and then the widget is called via the PanelManager using the showPanel() function. It should be noted that the PanelManager must be included in the define block of the widget.<\/P>
<\/P>
Happy coding!<\/P><\/BODY><\/HTML>