ClientType - property of the PmgRoot object

It gets whether the window is opened in the application or in the Web browser.
Long ClientType
1 - The window is opened in the application
2 - The window is opened in the 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 has sense only if the panel is used locally in the application and also for the Web as Web panels (i.e. if the Web sharing is enabled on the "Web server" tab).

This property is also functional in Web panels.
JavaScriptVBScriptSelect and copy to clipboard

if (1 == pMe.Root.ClientType)
// algorithm for local panel
else if (2 == pMe.Root.ClientType)
// algorithm for the Web

Pm8.03.00: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.