Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Close - method of the PmaPanel object

Description:
The method closes the panel (removes it from the screen and the memory).
This method/property/event is considered obsolete and is functional only if the "Level of integration of panel viewer and the local application" configurator is set to full - FULL access from scripts to the whole application (only for VBScript and if the "Enable multiple opening of local panel" configurator IS NOT SET.
Instead of this method it is better to use the PmgRoot.Close method.
Syntax:
Empty Close()
Note:
The method is executed only if the "PanelClose" permission is fullfiled.

This method can even be called in the INFO system by clicking the "Actions" button. See "PmaRoot > Permissions > InfoEdit" permission.

The method is functional even for Web panels. This method can be called, for example, in the onButtonUp event of the PmgButton object (see Example).

This method is used only for special cases. The window is usually closed automatically. In the workspace (in the PmaWorkspace object), the window is closed if another window is opened in the same frame. Independent window is usually closed by the user clicking the cross button in window header.
See also:
Example:
Example of closing the panel by the button in the panel. In the button (in the PmgButton object) in the onButtonUp event, there is the following script:
JavaScriptVBScriptSelect and copy to clipboard

pMe.PmPanel.Close();
PROMOTIC 9.0.17 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice