Show TOC

 Display Web Template as Modal DialogLocate this document in the navigation structure

Use

Using the Display Web Template as Modal Dialogcommand (OPEN_TEMPLATE_DIALOG), at the runtime for a Web application, you can display another Web template as a modal dialog.

Command Parameters

The following information lists the command parameters in the same sequence that they appear in the command wizard when you insert the command:

Parameter Description

Width in Pixels (WIDTH)

You use this parameter to specify the width of the dialog.

Height in Pixels (HEIGHT)

You use this parameter to specify the height of the dialog.

Web Template (TEMPLATE)

You use this parameter and the open dialog to select the Web template that is to be displayed as a modal dialog.

Resize Automatically (USE_AUTOMATIC_RESIZING)

You use this parameter to specify whether the Width in Pixels and Height in Pixels parameters are to be used or whether the size of the dialog is to be adjusted automatically.

Application Context

This command is particularly useful if you want to start your own dialogs from a running Web application. Using the Web Application Designer, the dialog box is created as a Web template. Any changes that you make in the called dialog box can affect the original Web template. Whether this actually occurs depends on how you close the dialog box. See Close Current Web Template Dialog with Cancel and Close Current Web Template Dialog with OK .

The original Web template and the called Web template form a unit. The status of a Web item or data provider is passed to the called Web template if the names of the Web item or data provider are identical. This allows the state of a Web item or data provider to be passed easily to the dialog box (called Web template).

Using the Properties Pane Web item, or the Set Web Item Parameters command, you can change parameters in the original Web template. This also applies to Commands for Data Providers .

Note  

Note that if you want to change parameters in Web items or data providers in the original Web template, these Web items or data providers generally do not exist in the called Web template. The Web Application Designer therefore does not list these objects in the input help under Properties. However, you can enter the name of this Web item or data provider that does not exist, under Properties or in the command wizard (see Commands ). To do this, press F11 (makes non-input-ready parameters input-ready). You can also enter the name manually in the XHTML view.

Tip

In the original Web template A, a Chart Web item, CHART_1, exists. From Web template A, you call a second Web template. The called Web template B contains a Properties Pane Web item that changes the chart type for CHART_1 from Web template A.

If you now edit Web template B in the Web Application Designer, the input help of the Properties Pane Web item does not contain the value CHART_1, because the CHART_1 Web item is not known in Web template B. You therefore need to enter this name manually, if required.

Note

If you enter an unknown Web item or an unknown data provider in the called Web template, this results in an error message in the Web Application Designer. In the situation outlined above, you can ignore this error message.

Web items that are to be displayed in the dialog box only must have a unique name that does not already exist in the original Web template.