Record Field References
Use record field references to retrieve the value stored in a record field or to assign a value to a record field.
Record Field Reference Syntax
References to record fields have the following form:
[recordname.]fieldname
You must supply the recordname only if the record field and your PeopleCode program are in different record definitions.
For example, suppose that in a database for veterinarians you have two records, PET_OWNER and PET. A program in the record definition PET_OWNER must refer to the PET_BREED record field in the PET record definition as PET.PET_BREED.
However, a program in the PET record definition can refer to this same record field more directly as PET_BREED.
If the program is in the PET_BREED record field itself, it can refer to this record field using the caret (^) symbol.
The PeopleCode Editor replaces the caret symbol with the actual record field name.
You can also use object dot notation to refer to record fields, for example:
&FIELD = GetRecord(RECORD.PET_OWNER).GetField(FIELD.PET_BREED);
Legal Record Field Names
A record field name consists of two parts, the record name and the field name, separated by a period.
The field names used in PeopleCode are consistent with the field names allowed in the field definition. Case is ignored, although the PeopleCode Editor for the sake of convention, automatically formats field names in uppercase. A field name can be 1 to 18 characters, consisting of alphanumeric characters determined by your current language setting in Microsoft Windows, and characters #, @, $, and _.
A record name can be 1 to 15 characters, consisting of alphanumeric letters determined by your current language setting in Microsoft Windows, and characters #, @, $, and _.