onUserLogonEnd - event of the PmaRoot object

The event is triggered after successful loggin-in user to running application.
pMe(Object) Reference to the PmaRoot object where the event rises.
pEvent(Object) Reference to object describing detailed information about the specific event.
pEvent.User - (Object) [for reading] The PmUser object that represents the user being logged in.
pEvent.UserId - (String) [for reading] (obsolete) Identifier of the logged on user. The same value as pEvent.User.Id.
pEvent.Name - (String) [for reading] (obsolete) Name of the logged on user. The same value as pEvent.User.Name.
pEvent.Level - (Integer) [for reading] (obsolete) The level of the logged on user.
The event is triggered for every user (both local and network). Deatiled user information (PmUser object) are avilable in the pEvent.User parameter.
If needed to execute some code only for local users and verified network users, then it is possible to test the values in the pEvent.User parameter.
The non-logged user identifier is an empty string, see the PmUser.Id property.
JavaScriptVBScriptSelect and copy to clipboard

if (pEvent.User.Type != 2 | pEvent.User.Id != "")
// ... The code executed only for local users and verified network users
PROMOTIC 9.0.24 SCADA system documentation MICROSYS, spol. s r.o.

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