VFW100 Define a Parent Child Instance List

VLF Windows Application Development

VFW100 – Define a Parent/Child Instance List

The shipped VL Framework HR Demo Application has a business object Organisations which demonstrates how the instance list can be configured as a tree with a number of levels:

The standard instance list manager is configured to show 3 business objects.

Implementing this example within the HR Demo Application required the following steps:

  • Define business objects: Organisations, Sections and Resources.
  • Create a hidden filter to populate the instance list with Organisations.
  • Define Instance List relationship for Organisations to Sections.
  • Create a relationship handler function to expand Organisations with Sections.
  • Define the Instance List relationship for Sections to Resources.
  • Create relationship handler function expanding Sections with Resources.

You will find a full description of the topic Instance Lists with different types of object in the Visual LANSA Framework Guide / Framework Programming / List Manager and Instance Lists.

Objectives

For this exercise you will define new Departments and Sections business objects for your iii HR Application. The Departments instance list will then be defined with a child of Sections.

  • A Hidden filter will populate the instance list with all departments.
  • A Relationship Handler function will add sections to the instance list when a department is expanded.

  • To meet this objective you will complete the following:
  • Step 1. Define New Business Objects

    Step 2. Create a Hidden Filter for _Departments.

    Step 3. Create a Relationship Handler to Load _Sections

    Step 4. Access the Properties of Hidden Child Objects

    Summary

    Before You Begin

    You should complete exercises VFW020, VFW030 and VFW040.