Step 2 Change your filter

Visual LANSA Framework

Step 2: Change your filter

Finally, you need to make some changes to your filter to fill the new instance list columns with data.

1.  Close the Framework

2.  Open the source of the By Location filter (reusable part iiiCOM02) which you created in VLF006WIN - Snapping in A Real Windows Filter.

3.  Make these changes to the code:

Change the GROUP_BY command to include the #SALARY field:

Group_By Name(#XG_Ident)   Fields( #EMPNO #GIVENAME #SURNAME #SALARY)

 

Locate the following statement Select Fields(#XG_Ident) command and change the AddtoList statement to:

* Add instance details to the instance list

Invoke #avListManager.AddtoList Visualid1(#EMPNO) AKey1(#EMPNO) Visualid2(#Surname) AColumn1(#Givename) NColumn1(#Salary)

 

4.  Compile the reusable part.

5.  Start the Framework and test the result.

 

 

6.   Close the Framework.