Page History
...
3. The logic for the Read button will be the same as in WMdemo, that is, it will FETCH the record from the Personnel Master when the STDRENTRY value is 'R'.
If Cond(#stdrentry = R)
Fetch Fields(#empdata) From_File(pslmst) With_Key(#empno)
Endif
Your finished WebRoutine should appear as follows:
Webroutine Name(WMdemo2) Desc('Web_Map Demo WR2')
Web_Map For(*BOTH) Fields((#empno *output) #givename #surname (#stdrentry *hidden))
Web_Map For(*output) Fields(#Address1 #POSTCODE)
If Cond(#stdrentry = R)
Fetch Fields(#empdata) From_File(pslmst) With_Key(#empno)
Endif
Endroutine
4. Click the Compile button in the LANSA Editor toolbar to compile the WAM component.
[ |../../index.htm#lansa/wamengt4_0185.htm]