Promotic
WikipediaLinkedInYoutubeTwitterFacebook

OpenView - method of the PmaWorkspace object

Description:
The method opens viewer of another object.

This method is obsolete (but functional) and it is better to use the Pm.CreateView method.

Syntax:
Empty OpenView(String sObjectPath, [String sOptions], [String sParams], [PmMap oExtra])
Parameters:
sObjectPath(String) Path (relative or absolute) to the object or component whose viewer will be opened.

For detailed description see sObjectPath.

sOptions[optional] (String) The parameters transferred to the viewer. These define where and how to open the viewer.

Entries are in KeyVal format, for example "_blank1".

For detailed description see sOptions.

sParams[optional] (String) Parameters transferred to the object that is to be viewed by the corresponding viewer.

Entries are in KeyVal format, for example "name1:value1;name2:value2;".

For detailed description see sParams.

oExtra[optional] (PmMap) Additional entry of viewer behavior. The items are defined here by creating properties in the PmMap type object (contrary to previous parameters sOptions and sParams where the entry is added in text form) - this way it is possible to transfer general values (not only text).

For detailed description see oExtra.

Note:
For opening the viewer the permission must be set in the opening object. For example:
- for the PmaPanel object: permission PanelOpen or WebRead
- for the PmaAlarmGroup object: "WebRead" permission
- etc.
Example1:
Opens the panel "../Panel2" in the frame "main" and sets the value of the nmb parameter.
JavaScriptVBScriptSelect and copy to clipboard

oWorkspace.OpenView("../Panel2", "target:main;", "pars:{nmb:2;}");
Example2:
Opens the HTML report "../Report" in the frame "main".
JavaScriptVBScriptSelect and copy to clipboard

oWorkspace.OpenView("../Report", "target:main;", "");
Example3:
Opens alarm state viewer ("/alarms" object) in the main frame of the application.
JavaScriptVBScriptSelect and copy to clipboard

oWorkspace.OpenView("../alarms", "target:main;");
//or
oWorkspace.OpenView("../alarms/#state", "target:main;");
PROMOTIC 9.0.14 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