Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 Image Removed Image Added Compile button in the LANSA Editor toolbar to compile the WAM component.
[ Image Removed |../../index.htm#lansa/wamengt4_0185.htm]