ClientType - property of object PmiRoot

It gets whether the window is opened in PROMOTIC application or in Web browser.
ClientType As Integer
nType = oRoot.ClientType
1 - Window is opened in PROMOTIC application
2 - Window is opened in Web browser
Property access for read only.

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).

This property is also functional for Web panels.
Example for JavaScript language:
if(pMe.Root.ClientType == 1)
  ' algorithm for local panel
else if(pMe.Root.ClientType == 2)
  ' algorithm for Web
Example for VBScript language:
If pMe.Root.ClientType = 1 Then
  ' algorithm for local panel
ElseIf pMe.Root.ClientType = 2 Then
  ' algorithm for Web
End If
PROMOTIC 8.3.20 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