Step 3. Create a WAM By Location Filter
In this step, you will create a real By Location filter that will locate Employees by the department and section in which they work.
1. Start the
.2. Select the Framework object navigation tree in the upper left of the
form.3. Drill down through the tree to find your By Location filter and select it.
4. Choose Web - using WAM components option as the platform.
5. Select the type Filter that searches using a file or view.
6. Click
.The
shows the PSLMST file as the physical file and detects the Visual and Programmatic Identifiers required. You do not need to change any of these values.7. Click the
button.On the screen:
a. Select the file view named PSLMST1 (Personnel by Department, Section, Employee Number).
b. Select the search keys DEPTMENT and SECTION.
c. Deselect
.d. Deselect
.e. Select
.8. Click the
button. The right hand side of the now shows the code that it has generated for your filter.9. In the
window specify iiiWAM110 (where iii are your initials) as the name of your filter and give it a description. If you are using an unlicensed or trial version of Visual LANSA, you must always use the 3 characters DEM to replace iii.10. Then click the
button to create your filter.11. Switch to the Visual LANSA editor. Compile the By Location WAM and choose to generate XSL for all web routines.
12. Check in and compile the WAM to the server.