Friday, April 24, 2020

Peoplecode Events

PeopleCode Events

This section discusses:
• Activate event.
• FieldChange event.
• FieldDefault event.
• FieldEdit event.
• FieldFormula event.
• ItemSelected event.
• PostBuild event.
• PreBuild event.
• PrePopup event.
• RowDelete event.
• RowInit event.
• RowInsert event.
• RowSelect event.
• SaveEdit event.
• SavePostChange event.
• SavePreChange event.
• SearchInit event.
• SearchSave event.
• Workflow event.


Note. The term PeopleCode type continuously used, but it doesn't fit into the PeopleTools object-based. The term PeopleCode events should now be used henceforth. However, it’s often easy to qualify a category of PC programs triggered by a particular event with the event name; for eg, PC programs associated with the RowInit events are together referred to as RowInit PC.


Activate Event

The Activate event is initiated whenever that a page is activated, including when a page
is first displayed by a user, or if a user presses Tab between different pages during a
component. Each page has its own Activate event.
The Activate event segregates PeopleCode that's associated with a particular page from the remainder
of the application’s PeopleCode. Place PeopleCode associated with page display or page
processing, like enabling a field or hiding a scroll area, during this event. Also, you can
use this event for security validation: if a user doesn't have clearance to look at a page

in a component, you'd put the code for hiding the page during this event.