PeopleCode Event: Page Activate

PeopleCode Page Activate Event
Every page has an Activate event associated with it which gets fired every time the page gets activated. If there are multiple pages in a component, this event fires each time you navigate to this page. This event is valid for Standard and Secondary pages only. That means it doesn’t apply for sub pages.

The page activate event is usually used for security validations that include hiding / displaying objects on the page. Say, if we want a grid to be displayed only when this page is called from a particular component then, the code for it can be written in this event.

It is also used to achieve different kinds of processing based on different Component Builds. Say, we need the page to behave differently in Add Mode and Update Mode, we can specify it here.

Have a look at more PeopleCode events here.

Tags: 
Subscribe to Comments RSS Feed in this post
2 Responses
  1. How with PeopleCode can i change the property display only of a grid?

    • @luis

      The Grid class doesn’t offer an “Enabled” property.

      If you are on PT 8.5 or above, you can use the EnableColumns() method of the Grid class to efficiently make a grid display-only.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*

Read previous post:
PeopleSoft Journal Uploader
PeopleSoft Journal Import Error – User-defined type not defined

Close