Promotic

ViewerType - property of the PmaPanel object

Description:
It gets whether the window is opened in the application or in the Web browser.
This method/property/event is considered obsolete and is functional only if the "Level of integration of the panel viewer and the local application" configurator is set to full - FULL access from scripts to the whole application (only for VBScript) and if the "Enable multiple opening of local panel" configurator IS NOT SET.
Instead of of this property it is better to use the PmgRoot.ClientType property.
Syntax:
Long ViewerType
Values:
1 - The window is opened in the application
2 - The window is opened in the Web browser
Note:
Property access for read only.
 
This property can be read only in Pmg object event scripts. By this property it is possible to conditionally run different algorithms in the application and in the Web browser. It has sense only if the panel is used locally in the application and also for the Web as Web panels (i.e. if the Web sharing is enabled on the "Web server" tab).
Example:
JavaScriptVBScriptSelect and copy to clipboard

if (pMe.PmPanel.ViewerType == 1)
{
// algorithm for local panel
}
else
{
// algorithm for the Web
}
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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