Promotic
WikipediaLinkedInYoutubeTwitterFacebook

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 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 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 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 Web
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