Accessing Component Record Field PeopleCode

This section provides an overview of the component record field event set and discusses how to access component record field PeopleCode.

Component record field PeopleCode is associated with a record field, but only with respect to a component and one of its events. Use this type of association to tailor your programs to a particular component. This PeopleCode is accessible only through the component structure view, not from a record definition. The following events are associated with a component record field:

  • FieldChange

  • FieldDefault

  • FieldEdit

  • PrePopup

To access PeopleCode associated with a component record field, open the component, click the Select tab, select a field, right-click the field name, and select View PeopleCode. A lightning bolt appears next to the field name if PeopleCode is associated with the field at the component level. If PeopleCode is associated with the field at the record level, then a lightning bolt does not appear, as shown in the following example:

Image: Accessing component record field PeopleCode from the component structure

This example illustrates the fields and controls on the Accessing component record field PeopleCode from the component structure. You can find definitions for the fields and controls later on this page.

Accessing component record field PeopleCode from the component structure

Note: The Structure tab displays only the runtime state of the PeopleCode. That is, it only displays record field PeopleCode. For example, PeopleCode programs that are orphaned as a result of a page definition change do not appear on the Structure tab. Orphaned PeopleCode programs do appear, however, in the PeopleCode Editor, which displays the design-time view of PeopleCode.

The PeopleCode Editor appears. If that field has associated PeopleCode, then the first program in the component record field event set appears in the editor.