Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetViewInfo - method of the PmaWorkspace object

Description:
Obtains the information about the viewer in the specified frame..
Syntax:
Array GetViewInfo(String sFrameId)
Parameters:
sFrameId(String) Frame identifier for acquiring the information about currently open viewer. See the "Identifier" configurator in frame configuration.
Return values:
The method returns 1-dimensional array 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 pro VBScript (it can be tested by the Pm.IsValid method).
Note:
The knowledge of open viewer parmeter 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:
Example:
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.17 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