Loading data on page load
In the previous section, we learned about the different life cycle events of a page; now we will execute a vbEnter event, which will help to load page data before a page is loaded.
In this section, we will execute a use case that will load data from the Employee Business Object before page load and show the data in a table component. The following are the high-level steps to achieve the use case:
- Create a type and a variable of the Array Data Provider (ADP) type.
- Register the
vbEnter
event and load the Employee Business Object data. - Populate the Employee Business Object data from the ADP variable in a table.
We'll create a new web application with the name chapter7
under our VBCSBook application and develop all the use cases in this web application. Refer to Chapter 3, Exploring Visual Builder Ingredients, specifically the Understanding the application's structure section, to see how to create a new web application.
ADP...