GetViewInfo - method of the PmaWorkspace object

Returns the information about the viewer in the specified frame.
Array GetViewInfo(String sFrameId)
sFrameId(String) Frame identifier for obtaining the information about currently open viewer. See the "Identifier" configurator in frame configuration.
Return value:
The method returns 1-dimensional array (PmArray object for JavaScript or Array data type for VBScript) of three values of the String type.
These three strings represent the values of sObjectPath, sOptions and sParams parameters, used for opening the viewer in current frame by the CreateView method.
If there is no viewer open in current frame, then the method returns three empty strings.
If does not exist frame with defined identifier then the method returns: null for JavaScript or Empty for VBScript (it can be tested by the Pm.IsValid method).
The knowledge of open viewer parameter values sObjectPath, sOptions and sParams allows:
1) Find out, which viewer is currently open in specified frame (the value of sObjectPath is most significant).
2) Storing these three values is allowed by the CreateView method, for opening the identic viewer later on.
See also:
Obtains the information about currently open viewer in the "main" frame.
JavaScriptVBScriptSelect and copy to clipboard

var aInf = oWorkspace.GetViewInfo("main");
var sObjectPath = aInf.GetItem(0);
var sOptions = aInf.GetItem(1);
var sParams = aInf.GetItem(2);
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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