Step 4 Create a Real By Location Filter

Visual LANSA

Step 4. Create a Real By Location Filter

In this step you create a real By Location filter.

1.  In the Framework start the Program Coding Assistant.

2.  Drill down through the tree to find your By Location filter and select it.

3.  Select Native MS Windows as the platform to generate for and the type as Filter that searches using a file or view.

4.  Press the Next>> button.

a.  For your VISUAL IDENTIFIERS specify fields EMPNO, GIVENAME and SURNAME

b.  For your PROGRAMATIC IDENTIFIERS specify field EMPNO only.

c.  No ADDITIONAL COLUMNS should be specified.

5.  Click the Next>> button to move the Program Coding Assistant forward to the next prompt. This prompt is asking you to select the file or view that the filter should use for searching.

a.  PSLMST should already be specified as the Underlying Physical File.

b.   Select the view named PSLMST1 (Personnel by Department, Section, Employee Number).

c.  Select the search keys DEPTMENT and SECTION.

d.  Deselect User must specify all Chosen Keys.

e.  Deselect Allow Generic Searching.

f.  Select Remember key values between filter executions.

g.  Select Allow user to clear instance list.

6.  A screen with additional options is displayed. Do not select any.
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.

7.  In the Generated Code window, specify iiiCOM22 as the name of your new filter and give it a description.

Click the Create button to create your filter.

8.  Switch to Visual LANSA and your filter should be open in the editor.

     Compile the new component.