Promotic
WikipediaLinkedInYoutubeTwitterFacebook

ClientType - property of object PmiRoot

Description:
It gets whether the window is opened in PROMOTIC application or in Web browser.
Syntax:
ClientType As Integer
Calling:
nType = oRoot.ClientType
Values:
1 - Window is opened in PROMOTIC application
2 - Window is opened in Web browser
Note:
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:
JavaScriptVBScriptSelect and copy to clipboard

if (pMe.Root.ClientType == 1)
  //algorithm for local panel
else if (pMe.Root.ClientType == 2)
  //algorithm for Web
PROMOTIC 8.3.22 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