Update cookies preferences
Promotic

Opening the viewer of the INFO system (/#glob/infosystem)

The viewer of the INFO system is opened by by the Pm.CreateView method. In the sViewPath parameter the global path "/#glob/infosystem" is entered.
This viewer is not functional in Web panels.
Syntax:
JavaScriptVBScriptSelect and copy to clipboard

var oCreator = Pm.CreateView(oFrom, "/#glob/infosystem", sViewPars, sFramePars);
oCreator.Open();
Parameters of the Pm.CreateView method:
oFrom(Object) The object, which will mediate the opening of the viewer.
The object specifies the origin of the path, the relative position of the window, the parent, etc.
- The null value means the usage of:
- the PmaPanel object if CreateView method is called in the script of the Pmg object.
- active PmaWorkspace, if CreateView method is called in the script of the Pma object.
- If the the PmgFrame object is entered here (in the script of the Pmg object), then the viewer opens in this frame.
- If the the PmaPanel object is entered here (in the script of the Pma object), then the viewer opens in this selected object.

See the PmViewCreator.From property.
sViewPath(String) Path (relative or absolute) to the object or component whose viewer will be opened.
See the PmViewCreator.ViewPath property.
sViewPars(String) Viewer parameters (they differ for various viewer types).
See the PmViewCreator.View property.
Entries are in the KeyVal format. For example "path:Errors;name:Script;".

Properties and events in the PmViewCreator.View object:
path(String) The path to the item in the item tree of the INFO system to be selected after opening the INFO system.
The path must not begin with a slash and the first item in the path must be one of the root items of the INFO system tree.
If the path is empty, then the last remembered entry will be selected when the INFO system is opened.
For example "path:Debug;", "path:PmaRoot/Folder1/Data;", "path:COMM/WebClient;".
name(String) Displayed name of the tab in the INFO system to be selected after opening the INFO system.
If the tab name is empty but the path in the INFO system tree is not empty, then the first tab of that INFO system item will be selected.
If both the tab name and the path in the INFO system tree are empty, then the last remembered item and tab will be selected.
sFramePars(String) Parameters for the frame where the viewer will be displayed.
See the PmViewCreator.Frame property.
Entries are in the KeyVal format, for example "target:_blank;".
Example:
Opening of the INFO system in a separate window:
JavaScriptVBScriptSelect and copy to clipboard

var oCreator = Pm.CreateView(null, "/#glob/infosystem", "", "target:_blank;");
oCreator.Open();

History:
Pm9.00.09: Created
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.