Step 3 Create a WAM By Location Filter

Visual LANSA

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 Program Coding Assistant.

2.  Select the Framework object navigation tree in the upper left of the Program Coding Assistant 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 Next>>.

     The Program Coding Assistant 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 Next>> 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 User must specify all Chosen Keys.

d.  Deselect Allow Generic Searching.

e.  Select Remember key values between filter executions.

8. Click the Generate Code button. The right hand side of the Program Coding Assistant now shows the code that it has generated for your filter.

9.  In the Generated Code 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 Create 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.