Step 3 Make Sections Business Object Visible

VLF Windows Application Development

Step 3. Make Sections Business Object Visible

VFW104 – Simple Keyed Collections

In the following steps you will change the Employee Images for Section command handler to be able to switch to the Employee Details command handler. The Employee Details command handler will be enhanced to enable the user to return to the Employee Images for Section command handler.

Note: Switching can only be performed on objects that are visible in the Navigation panel.

1.  In the VL Framework, display the properties of the _Departments business object.

2.  Display the Instance List / Relationships tab.

3.  Select Sections (_SECTION) in the business objects list at the bottom left of the panel.

4.   Select the option _Sections – Allow Selection from Navigation Pane.

5.  Close the properties of the _Departments business object. The _Sections business object is now visible in the navigation pane.

6.  Display the properties of the _Sections business object.

7.  Select the Icons tab, and select any suitable icon for _Sections.

     Next you need to replace the mock-up filter in the _Sections business object with a functional filter to populate the instance list:

8.  Start the Program Coding Assistant.

9.   Select the _Sections business object in the iii HR application.

10. Select New Filter / Windows as the platform and a Filter that searches a file or a view.

11. Click Next.

12. Specify SECTAB as the physical file, and DEPTMENT and SECDESC as the Visual Identifiers.

13. Accept the other defaults set by the Program Coding Assistant and click Next.

14. Specify DEPTMENT field as the key to be used for search operations.

15. Select Allow Generic searching, Remember key values between filter executions and Allow user to clear instance list.

16. Click Next.

17. Select Routine to listen for signals to update the instance list.

18. Click Generate Code.

19. On the Generated Code page specify iiiVFW30 as the name of your filter and Sections Filter as the description. (iii are your initials. If you are using an unlicensed or trial version of Visual LANSA, your component names must have the form DEMCOM01 to 09).

20. Click Create. The component is displayed in the Visual LANSA Editor.

21. Compile the filter.

22. In the Framework, snap the filter in the Sections business object. Use the Find dialog and select your reusable part to snap in. This will snap in using the Identifier.

23. Save and Restart the VL Framework and test the filter. You will now be able to access the Sections business object and command handlers directly from the Navigation pane.