LoggedUser - property of the Pm object
Description:
Returns the
PmUser object, that represents the logged user.
Syntax:
Object LoggedUser
Note:
Property access for
read only.
In the running application the property returns the currently logged local user (if there is no local user logged-in, then the compensatory user is returned, that represents the non logged user).
This method
is not functional in
Web panels. Instead of of this, it is possible to use the following in the
Web panel:
- Call the designer method of the
PmaPanel object (see the "
Methods" tab). The user information is not available directly from the client in the
Web panel. Calling this method initiates communication with the server, the method is executed on the server, and via the
pContext.User parameter it finds and returns the requested information. Calling this method returns the requested information after communication with the server.
Example:
Detects whether there is a logged-in local user
JavaScriptVBScriptSelect and copy to clipboard
if (Pm.IsValid(Pm.LoggedUser.Id))
{
// ...
}
If Pm.IsValid(Pm.LoggedUser.Id) Then
' ...
End If