Promotic

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 this, it is possible to use the following in the Web panel:
- Call the designer's 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.
See also:
Example:
Detects whether there is a logged-in local user
JavaScriptVBScriptSelect and copy to clipboard

if (Pm.IsValid(Pm.LoggedUser.Id))
{
// ...
}
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- LoggedUser
 
 
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r.o.