Limit Pop-up Pages

If your application uses pop-up pages for controls or other features, you can limit the number that may be open at any one time. By default, VTScada will allow eight pop-up pages to be opened at once before displaying a warning. More pages may be opened, but the operator must chose to do so by acknowledging the warning.

Trend windows (HDV graphs) that were opened by clicking a tag do not count toward the pop-up page limit.

A related option is that you might want to close all pop-up pages when the operator changes the page in the main display. This is sometimes done on the basis that the pop-up pages are often controls related to the current display. When the main display changes, the control pages should close.

Use the following application properties to limit or control pop-up page behavior.

PopupPageLimit

Sets the maximum number of pop-up pages that may be open at any one time.

If the operator attempts to open more pages than set by this limit, then the action will depend on the next property:

PopupLimitAction

Use this property to set one of the five possible actions:

0 or not set No action. The limit will be ignored.
1 Warn. Display a warning, but allow the operator to open the pop-up page.
2 Prevent. Display an error dialog, and prevent the opening of the pop-up.
3 Close Oldest. Whichever pop-up was open the longest during the current session will be closed so that this one can open and remain within the limit.
4 Close Newest. Close the second most recently opened pop-up page what that the current page can be opened without exceeding the limit.

PopupCloseOnPageClose

Close the pop-up page automatically if the page from which it was opened closes. (There must be a hotbox or hot-button on that page.)

This action can be overridden on a page-by-page basis by adding the variable, PopupCloseOnPageClose, to the page. If this variable exists and is set to 0 (FALSE), then the page will remain open while others close.

Variables can be added only by editing the page's source code. Remember that it is necessary to import file changes after editing a source code file.