
Def_List Name(#sectdd) Fields(#deptment #section #secdesc) Type(*Working)
WebRoutine Name(Details) Desc('Employee Details')Web_Map For(*BOTH) Fields(#EMPDATA (#deptdd *json) (#sectdd *json))Case (#STDRENTRY)When ('= M')Fetch Fields(#EMPDATA) From_File(PSLMST) With_Key(#EMPNO) Val_Error(*NEXT)If_Status Is_Not(*OKAY)Message Msgtxt('Employee not found')Transfer Toroutine(Begin)EndifChange Field(#EMPNOW) To(#EMPNO)
#com_owner.BuildDD2 I_Dept(#deptment) I_Sect(#section)
(no With_key(#deptment) ).Mthroutine Name(BuildDD2)Define_Map For(*input) Class(#deptment) Name(#i_dept)Define_Map For(*input) Class(#section) Name(#i_sect)Clr_List Named(#sectdd)
* Read all Section recordsSelect Fields(#sectdd) From_File(sectab)Add_Entry To_List(#sectdd)EndselectLoc_Entry In_List(#sectdd) Where((#deptment = #i_dept) And (#section = #i_sect))
Endroutine