In this step, you will add the RDMLX code to the newly created WAM.
Def_List Name(#emplist) Fields(#empno #givename #surname #address1 #phonehme) Type(*working) Entrys(*max)
Note: In RDMLX programs you should usually define lists using Entrys(*max). As well as having an upper limit which is only limited by the platform, lists defined in this way are dynamic and only occupy the memory required for their current number of entries. |
Clr_List Named(#EMPLIST)
Select Fields(#emplist) From_File(pslmst)
Add_Entry To_List(#emplist)
Endselect
Webroutine Name(ListMain) Desc('List Demonstration')
Web_Map For(*both) Fields(#emplist)
Def_List Name(#emplist) Fields(#empno #givename #surname #address1 #phonehme) Type(*working) Entrys(*max)
Clr_List Named(#EMPLIST)
Select Fields(#emplist) From_File(pslmst)
Add_Entry To_List(#emplist)
Endselect
Endroutine