ViewerType - property of object PmPanel

It gets whether the window is opened in PROMOTIC 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 value and if the Enable multiple opening of local panel configurator IS NOT SET.

Instead of this property it is recommended to use the PmiRoot.ClientType property.

ViewerType As Integer
nType = oPanel.ViewerType
1 - Window is opened in PROMOTIC 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).
If pMe.PmPanel.ViewerType = 1 Then
  ' algorithm for local panel
ElseIf pMe.PmPanel.ViewerType = 2 Then
  ' algorithm for WEB
End If
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice