Kbase 21536: How To Get and Use Manager Handles
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Verified
GOAL:
How to Access and Use Manager Handles
GOAL:
How to Access and Use Manager Handles running in a Dynamics session
FACT(s) (Environment):
Progress Dynamics 1.1A
Progress ADM2
Progress 9.x
FIX:
Managers are super procedures running in the Dynamics session. Sometimes it is necessary to execute internal functions or procedures on these Managers. A way to do that is by obtaining the manager handle.
Manager handles are GLOBAL SHARED VARIABLES defined as NEW in the icfstart.p procedure. They are executed as the first procedure in a Dynamics Session.
These variables are defined in the src\icf\af\sup2\afglobals.i file.
The following is a list of the Managers with their respective procedure names and variable names defined in a default Dynamics Session.
Manager Name Procedure Shared Variable
ConnectionManager afconmgrp.p
SessionManager afsessrvrp.p gshSessionManager
GeneralManager afgensrvrp.p
ProfileManager afprosrvrp.p gshProfileManager
RepositoryManager ryrepsrvrp.p gshRepositoryManager
SecurityManager afsecsrvrp.p gshSecurityManager
LocalizationManager aftrnsrvrp.p gshTranslationManager
When using these Managers with SmartObjects like SmartDataViewer or SmartDataObjects, these manager handles are already defined and it is possible to execute internal procedures using their variable names as shown in the above list. But when using standard procedures, these variables must be defined as follows:
DEFINE GLOBAL SHARED VARIABLE gshSessionManager NO-UNDO.