Use Case:
- Extend the EmployeeApplication . See my previous blog: https://soalicious.blogspot.com/2022/04/vbcs-sample-web-application-employee.html
- Create 2nd Business Object "Address"
- Create a reference between Address and Employee using employeeId
- Drop a table in the Main page of Employee list and associate the Address BO.
- Add 1st Filter criteria not to show any default addresses.
- Add 2nd filter criteria in the employee list event to show only addresses belongs to the selected employee.
Parent child relationship:
Steps in detail with Screenshots:
Add Business Object - Address.
Default fields:
Add all required fields and a reference Address to Employee BO using Employee id.
Go to the employee list main page:
Add a table >> Quick start >> Add data
Add field criteria not to show any address rows by default.
employeeId equals to "-1"
Select employee table >> Events
Go to addressListSDP >> filter Critetia >> click to add condition >> employeeId equals to $variables.employeeId
Select one employee >> it will show referenced Addresses of that employee.