Promotic
WikipediaLinkedInYoutubeTwitterFacebook

onUserLogonEnd - event of object PmRoot

Description:
The event fires after successful loggin-in the user into the running application.
Parameters:
pMe(Object) Reference to the Promotic object where the event rises.
pEvent(Object) A referrence to object describing detailed information about the specific event.
pEvent.User - (Object) User object 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 called for every user (both local and network). Deatiled user information (User 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 of the pEvent.User parameter. The non-logged user identifier is an empty string, see User.Id. The function of both versions of the example are similar.
If pEvent.User.Type=2 And pEvent.User.Id="" Then Exit Function
... The code executed only for local users and verified network users
or
If pEvent.User.Type<>2 Or pEvent.User.Id <> "" Then
  ... The code executed only for local users and verified network users
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice