Accessing Definitions and Associated PeopleCode

You can open fields, records, pages, application packages, and other definitions from the PeopleCode Editor. Or you can open a new PeopleCode Editor window containing the programs associated with a field, record, page, application class, or other definition.

To open a definition from the PeopleCode Editor, right-click a PeopleCode definition reference and select View Definition or View Application Package.

For example, you could open definitions by clicking the following references:

  • Record.BUS_EXPENSE_PER

  • BUS_EXPENSE_PER.EXPENSE_PERIOD_DT

  • Page.BUSINESS_EXPENSES

  • PT_BRANDING:BrandingBase

If you access a record definition from a record field reference (that is, recordname.fieldname) the specified record field is selected when the record definition opens.

To open a new PeopleCode editor window, right-click a reference to the definition and select View PeopleCode or, for application class PeopleCode, select View Application Class Method or View Application Class.

For example, you can access record PeopleCode from the following record and record field references:

  • Record.BUS_EXPENSE_PER

  • BUS_EXPENSE_PER.EXPENSE_PERIOD_DT

Note:

You can only view the PeopleCode and definition when the text is in the format recordname.fieldname. If the text is in the format method(i).recordname, method(i).fieldname, or &MyRecord.Fieldname, the View PeopleCode and View Definition commands are not available.

You can access application class PeopleCode from the following references:

  • PT_BRANDING:BrandingBase

  • %This.ValidateSave(&aErrs)