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 an 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-in user. The same value as pEvent.User.Id.
pEvent.Name - ( String) [ for reading] (obsolete) Name of the logged-in user. The same value as pEvent.User.Name.
pEvent.Level - ( Integer) [ for reading] (obsolete) The level of the logged-in user. |
---|
Note:
The event is triggered for every user (both local and network). Deatiled information about the user (
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 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
}
If pEvent.User.Type <> 2 Or pEvent.User.Id <> "" Then
' ... The code executed only for local users and verified network users
End If