Kbase 21532: Dynamics: Using the Session Manager to Get the Logged User
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  21/02/2007 |
|
Status: Unverified
GOAL:
How to get the user object, user login, and user name logged in the Dynamics session.
FIX:
When a user is logged in a Dynamics session, several values are stored in the Session Manager using the dynamic function 'setPropertyList'.
Some of these values are user information such as user object, user login, user name, user e-mail, etc.
In order to get these values the dynamic function getPropertyList should be used as follows:
MESSAGE DYNAMIC-FUNCTION('getPropertyList' IN gshSessionManager,
INPUT 'CurrentUserObj', INPUT NO) SKIP
DYNAMIC-FUNCTION('getPropertyList' IN gshSessionManager,
INPUT 'CurrentUserLogin', INPUT NO) SKIP
DYNAMIC-FUNCTION('getPropertyList' IN gshSessionManager,
INPUT 'CurrentUserName', INPUT NO).
These values can be obtained using the same function:
CurrentUserObj
CurrentUserLogin
CurrentUserName
CurrentUserEmail
CurrentOrganisationObj
CurrentOrganisationCode
CurrentOrganisationName
CurrentOrganisationShort
CurrentLanguageObj
CurrentLanguageName
CurrentProcessDate
CurrentLoginValues
DateFormat,LoginWindow