GetFieldList Function

 

The GetFieldList function is used to find all fields contained within a given object type.

 

Function Prototype

GetFieldList(ObjectType)

 

Parameter Definitions

ObjectType : String The type of object for which the fields are requested.

 

Output

GetFieldList returns two elements of the Output array. The first element returns any errors that might have occurred. The second element of the Output array contains an n x 6 array of fields. The layout of this array is virtually identical to the output obtained by going to Window > Export Case Object Fields from the main menu of Simulator.

Output(1)(n,0) - specifies which fields are key fields for the object by using numbers to indicate primary keys and letters to indicate secondary keys

Output(1)(n,1) - variablename:location (this is always the legacy variablename)

Output(1)(n,2) - type of data stored in the field (e.g., String, Integer, Real)

Output(1)(n,3) - field description

Output(1)(n,4) - concise variablename:location

Output(1)(n,5) - enterable (will be blank if the field is not enterable, Yes if enterable, or will contain an explanation if conditionally enterable) Added in version 22, build on November 18, 2021