![]() ![]() |
Reference Type: Supported, Category: Toolkit—Parameter Tools, ICR#: 2263
The GETLST^XPAR API is similar to the ENVAL^XPAR API; however, it returns all instances of a parameter.
REF: For descriptive information about the elements and how they are used in the callable entry points into XPAR, see the “Definitions” section in the "Toolkit—Parameter Tools" section in the Kernel 8.0 & Kernel Toolkit 7.3 Developer's Guide.
GETLST^XPAR(.list,entity,parameter[,format][,.error][,gbl])
.list: |
(required) The array passed as .list is returned with all of the possible values assigned to the parameter. REF: To see how this data can be returned, see the format parameter description. If the gbl parameter is set to 1, then the .list parameter becomes an input and holds the closed root of a global where the GETLST^XPAR API should put the output [i.e., $NA(^TMP($J,”XPAR”))]. |
entity: |
(required) Entity can be set to the following:
This works for the following entities:
|
parameter: |
(required) Can be passed in external or internal format. Identifies the name or internal entry number (IEN) of the parameter as defined in the PARAMETER DEFINITION (#8989.51) file. |
format: |
(optional) The format input parameter determines how the value is returned. It can be set to the following:
|
gbl: |
(optional) If this optional parameter is set to 1, then the .list parameter must be set before the call to the closed global root where the return data should be put. For example: GETLST^XPAR($NA(^TMP($J)),ent,par,fmt,.error,1) |
.error: |
(optional) If used, must be passed in by reference. It returns any error condition that may occur:
|
>D GETLST^XPAR(.LIST,”SYS”,”XPAR TEST MULTI FREE TEXT”,,.ERROR) |