GetCodeObj
| Description: | Retrieves the "Code" object associated with the layer. |
| Returns: | Object |
Usage: ![]() |
Script Only. |
| Function Groups: | Configuration Management |
| Related to: | GetLoadedAppInstance | |
Format: ![]() |
LayerRoot\GetCodeObj() |
| Parameters: | none |
| Comments: | This function is useful when there is a need to work with the code object of a layer other than the current application. |
Examples:
Given a valid, 32-character application GUID, stored in TextGUID, the following will obtain the list of parameters in the current page.
Layer = GetLoadedAppInstance(TextGUID);
AppCodeObj = Layer\GetCodeObj();
PageParmNames = ListVars(Scope(AppCodeObj, SessionData), "*", 0, 0, 4 {parms}, 0, 0, 0, 0);
