Update cookies preferences
Promotic

CreateView - method of the Pm object

Description:
Creates the PmViewCreator object for opening the object viewer.
Syntax:
Object CreateView(Object oFrom, String sViewPath, String sViewPars, String sFramePars)
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 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.
 
or path to the global viewer:
- "/#glob/form" = Opening the viewer of the PmForm object
- "/#glob/webbrowser" = Opening the viewer of Web pages
- "/#glob/infosystem" = Opening the viewer of the INFO system
- "/#glob/filepath" = Opening the viewer for file/folder selection
- "/#glob/list" = Opening the viewer for option selection
sViewPars(String) Viewer parameters (they differ for various viewer types).
See the PmViewCreator.View property.
Entries are in the KeyVal format.
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;".
Note:
This method is also functional in Web panels.

Caution!
The PmViewCreator object will be emptied right after the script is finished (where it was created by the Pm.CreateView method), or after calling the PmViewCreator.Open method. Therefore it is not possible to prepare it in advance for later use.
See also:
- PmViewCreator (object)
Example:
JavaScriptVBScriptSelect and copy to clipboard

// Creating and setting the object parameters:
var oCreator = Pm.CreateView(null, "../PanelTechnol", "", "target:_blank;");
// Opening the viewer of the object:
oCreator.Open();

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

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- CreateView
 
 
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r.o.