Step 3. Create Multiple Lists
FRM055 - List Component Basics
In this step you will add a second combo box which will contain the Sections for the current department and a List View component, which will contain employee data for the selected section.
1. Drop a second
onto the , alongside the department combo box. Position and resize it. Change its to SECTS.2. Drop a
component above the new . Position and resize it. Change its to Sections. Remember you can use the dialog on the tab to align components. Your form should now look like the following:
3. On the CBCL_3, the first column added to SECTS, based on field SECTION. Change its property to False.
tab, find the file SECTAB and expand it. Drag and drop field SECTION into combo box SECTS. Select the tab. Note that you are working withDrag and drop field SECDESC into combo box SECTS. Section description will be the visible column in SECTS.
4. Delete the fields DEPTMENT and DEPTDESC from the form.
5. Lengthen the form and drag and drop a List View onto the lower form area. Change its EMPLOYS. Resize it to occupy all the space. Your form should look like the following:
to
6. Locate the file PSLMST on the
tab and expand it. Drag and drop fields, EMPNO, SURNAME, GIVENAME, POSTCODE and SALARY into the list view EMPLOYS. Your form should look like the following: