Kbase P82081: Dyn: How to retrieve a session property defined in Session Type Control
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  6/3/2004 |
|
Status: Unverified
GOAL:
How to retrieve a session property defined in Session Type Control?
GOAL:
Session Manager 'getSessionParam' API is the right API to return the value of a Session Property defined in Session Type Control
GOAL:
Session Manager 'getPropertyList' API is not the right API to return the value of a Session Property defined in Session Type Control
GOAL:
There is no API in the Session Manager to return the value of a Session Property defined in Session Type Control
FACT(s) (Environment):
Dynamics 2.1A
FIX:
The session manager has indeed an API called 'getPropertyList' that can returns the value of properties like 'currentUserObj', which is not defined in the session property control.
This session properties were probably called session parameters in the early days of Dynamics. This is perhaps why the right API to use in order to get the value of a property defined in the xml config file is called getSessionParam, defined in afxmlcfgp.p (XML Configuration File Manager). Note that afxmlcfgp.p is a session super procedure, so one does not need to know its handle to call it with the 4GL DYNAMIC-FUNCTION() function.
/*example OK in 2.1A02*/
MESSAGE DYNAMIC-FUNCTION('getSessionParam',INPUT 'DynamicsVersion').
MESSAGE DYNAMIC-FUNCTION('getSessionParam',INPUT 'session_debug_alert').