Next, you need to make changes to your filter to fill the extra fields in the instance list with data.
- Open the By Location filter iiiCOM05 which you created in VLF006WAM - Snapping in A Real WAM Web Filter.
- Make these changes to the code:
- Change the GROUP_BY command to include the #SALARY field:
Group_By Name(#XG_Ident) Fields( #EMPNO #SURNAME #GIVENAME #SALARY)
- Locate Select Fields(#XG_Ident) command and change the AddtoList statement to:
* Add instance details to the instance list
#avListManager.AddtoList Visualid1(#EMPNO) Visualid2(#Surname) AKey1(#EMPNO) AColumn1(#Givename) NColumn1(#Salary)
- Save the changed source code.
- If your Web server is on a IBM i, use the Host Monitor to send your changes to the IBM i.
- Compile your new WAM on the server.
- Restart the Framework and test the result.
