In this step you will create a reusable part that will become a mini filter for the Employees business object.
1. Start the Visual LANSA editor.
2. Create a reusable part of type Basic Filter. Specify iiiCOM07 as the name of your filter and Employee Mini Filter as the description. (iii are your initials. If you are using an unlicensed or trial version of Visual LANSA, your component names must be of the form DEMCOMnn).
3. Click on the Details tab of the component.
4. Click on the Ancestor property and click the prompt button:
5. Select the component #VF_AC007. It is the ancestor component for filters from which your mini filter will inherit properties, events and methods.
6. Click on the OK button.
7. Display the Controls tab:
8. Drag the Panel control to the Design view and drop it into the upper left part of the reusable part.
The panel will contain the contents of your mini filter. At run time you will tell the filter which panel contains the contents to be displayed in the mini filter area. Therefore, you could have multiple mini filter panels and display the appropriate one at run time.
9. Click on the Details tab with the panel selected.
10. Set the panel properties:
Left |
2 |
Top |
2 |
Width |
400 |
Height |
25 |
11. Switch to the Controls tab.
12. Drag a Check Box control to the upper left corner of the panel.
You must place all your objects in the upper left portion of the panel. The maximum height of your objects on the panel is restricted to the height of the tool bar in the Visual LANSA Framework Application which is 25 pixels. Therefore, if you add the value in the Top property of your component to the value in the Height property of your component, the sum should not exceed 25.
The check box will be used by the end-user to optionally clear the instance list when using the filter.
13. In the Details tab, set the default properties for the check box:
ButtonState |
Checked |
Caption |
Clear List |
Height |
21 |
Left |
0 |
Name |
CLEAR_LIST |
Top |
0 |
Width |
75 |
14. Select the Repository tab.
15. Locate the XEMPLOYEE file and expand it.
16. Drag the xEmployeeSurname field to the right of the check box on the panel.
17. Click on the Details tab and set the properties of the xEmployeeSurname field:
Left |
75 |
MarginLeft |
120 |
Top |
1 |
Width |
250 |
18. Save your mini filter.