var oCreator = Pm.CreateView(oFrom, "/#glob/webbrowser", sViewPars, sFramePars);
oCreator.Open();
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:
- 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. | ||
---|---|---|---|
sViewPars | (String) Viewer parameters (they differ for various viewer types).
See the PmViewCreator.View property. Entries are in the KeyVal format. For example "url:https://www.promotic.eu". Properties and events in the PmViewCreator.View object:
| ||
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;". |
var oCreator = Pm.CreateView(null, "/#glob/webbrowser", "url:https://www.promotic.eu", "target:_blank;dependent:0;");
oCreator.Open();