Promotic
WikipediaLinkedInYoutubeTwitterFacebook

onUserLogonEnd - event of the PmaRoot object

Description:
The event is triggered after successful loggin-in user to running application.
Parameters:
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) The PmUser object that represents the user being logged in.
pEvent.UserId - (String) (obsolete) identifier of the logged on user. The same value as pEvent.User.Id.
pEvent.Name - (String) (obsolete) Name of the logged on user. The same value as pEvent.User.Name.
pEvent.Level - (Integer) (obsolete) The level of the logged on user.
Note:
The event is triggered for every user (both local and network). Deatiled user information (PmUser object) are avilable in the pEvent.User parameter.
Example:
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 PmUser.Id.
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.14 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