ViewerType - property of object PmPanel

It gets whether the window is opened in the application or in 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 PmiRoot.ClientType property.

ViewerType As Integer
nType = oPanel.ViewerType
1 - Window is opened in the application
2 - Window is opened in Web browser
Property access for read only. This property can be read only in graphic item event scripts. By this property it is possible to conditionally run different algorithms in the application and in the Web browser. It is relevant 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 in the Web server page).
VBScriptSelect and copy to clipboard

If pMe.PmPanel.ViewerType = 1 Then
  'algorithm for local panel
  'algorithm for Web
End If
PROMOTIC 8.3.30 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