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:
JavaScriptSelect and copy to clipboard

var oCreator = Pm.CreateView(oFrom, sViewPath, sView, sFrame);
oCreator.Open();
Viewer parameters:
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 vindow, the parent, etc..
- The value null means the usage of:
- the PmaPanel object if the CreateView method is called in the script of the Pmg object.
- active PmaWorkspace, if the 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)
Entries are in the KeyVal format, for example "name1:value1;name2:value2;".
See the PmViewCreator.View property.

This viewer has no parameters.
sFramePars(String) Parameters for the frame where the viewer will be displayed
Entries are in the KeyVal format, for example "target:_blank;".
See the PmViewCreator.Frame property.
Example2:
Two ways of opening the INFO system in a separate window:
JavaScriptSelect and copy to clipboard

var oCreator = Pm.CreateView(null, "/#glob/infosystem", "", "target:_blank;");
oCreator.Open();
Example3:
or short syntax:
JavaScriptSelect and copy to clipboard

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

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

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