Creating User-Defined Methods Component Interface

Creating User-Defined Methods - Component Interface - Peoplesoft


To create a user-defined method:
1. Right-click anywhere in the component interface view.
2. Select View PeopleCode from the pop-up menu.
The PeopleCode editor appears. If using a new component interface no PeopleCode will
appear in the editor because no user-defined methods have been created.
3. Write the required PeopleCode functions.
PeopleCode functions that you write are stored in a single PeopleCode program that is
attached to the component interface and associated with the Methods event.
Note. New user-defined methods do not appear in the list of methods until you save the
component interface. Double-click the icon of any existing user-defined method to return
to this PeopleCode program.

4. Set permissions for the methods that you created.
You must set permissions for every user-defined method. If you set permission to Full
Access, at runtime that function is exposed to external systems as a method on the
component interface object.