GetField
Mon 01 January 2018Syntax
GetField([recname.fieldname])
Description
Use the GetField function to create a reference to a field object for the current context; that is, from the row containing the currently executing program.
If you do not specify recname.fieldname , the current field executing the PeopleCode is returned.
Note: For PeopleCode programs located in events that are not associated with a specific row, record, and field at the point of execution this function is invalid. That is, you cannot use this function in PeopleCode programs on events associated with high-level objects like pages or components. For events associated with record level programs (like component record), this function is valid, but it must be specified with a field name, as there is an assumed record, but no assumed field name.
When GetField is used with an associated record and field name on component buffer data, the following is assumed:
&FIELD = GetRow().recname.fieldname;
Parameters
Field or Control |
Definition |
---|---|
recname.fieldname |
If you do not want to refer to the field executing the PeopleCode, specify a record name and field name. |
Returns
This function returns a field object that references the field from the specified record.