Understanding Base Event Methods for Layouts

You can specify a base event method to run every time the application URL is invoked.

The PeopleCode method to use for layout initialization is the Initialization event, OnInitEvent. Use the event to populate data or perform any other processing logic.