Step 2. Create the Employee Query Command Handler.
VFW126 – Using Space Objects (Optional)
1. Create a new
:iiiVFW43
Reports Employee Query Command Handler
2. Give the reusable part an ancestor of VF_AC010
3. This command handler will display a list of employees from the space object selecting entries using the department code key.
Total Salary is shown for selected employees.
Note that the Employee Query displays all fields from the space object, which is different to the list view in the Salary command handler.
4. Use the
ribbon to give iiiVFW43 an .5. Drop a Panel component at the bottom of the RP's panel and change the new panel's Bottom. Adjust its height as required.
to6. Drop a Panel onto the top of the RP's panel and change the new panel's Top. Adjust its height if required.
to7. Drop a list view into the center of the RP's panel. If necessary use the
tab to ensure that the child components are correctly attached.8. Locate the file PSLMST in the Repository and drop fields EMPNO, SURNAME, GIVENAME, DEPTMENT, SECTION and SALARY into the list.
9. Create an
and event routine for the list view.10. Drop field TOTSALARY onto the right hand side of the panel Bottom.
11. Select the panel Top and use the LeftToRight, which is what is required.
ribbon to give it a . Open the tab and note that the default setting for is12. Select the Top panel on the All setting to give children on this panel a margin of 6 pixels on all four sides.
view. On the , select the on the tab. Use the13. Drop the field DEPTMENT onto the panel Top. Change its DEPT_IN
to14. Drop a Push Button component onto the Top panel. Give it a Select and change its to PHBN_SELECT.
of15. Create a
event for the push button.16. Save the reusable part.