The DataView module iwf (interactive widget functions) provides the standard editing functions for widgets. One of the iwf edit functions, iwf_cls_edt, is the standard function for setting the closed edit mode. In closed edit mode, you cannot leave a widget while editing it.
You must pass the closed edit mode whenever you want to jump from a userexit to an iwf edit function. The edit mode is automatically reset to its default valueopen edit modeafter each call of an iwf edit function.
The following tables describe how the following userexits are used with iwf_cls_edt to customize the Java Client and Web Client.
Procedure for all Clients: |
RES = @dal_mdl_wdg_opn("iwf_lis_ent /PAR= EDB-ARTICLE EDB-ART-SLI") //opens item list WDG = widget_id() RES = @iwf_cls_edt() // set closed edit mode RES = @iwf_ins_elm() // set list in insert mode, widget is modal now widget_close(WDG) // close modal widget when edit action is completed |
Procedure for all Clients: |
RES = @dal_mdl_wdg_opn("iwf_lis_ent /PAR= EDB-ARTICLE EDB-ART-SLI") //opens item list WDG = widget_id() RES = @wdh_upd_lis() // update list, show existing items row_select(WDG,1) // select first row, this is to be duplicated by iwf_dup_elm RES = @iwf_cls_edt() // set closed edit mode RES = @iwf_dup_elm() // set selected row in update mode, widget is modal now widget_close(WDG) // close modal widget when edit action is completed |
Procedure for all Clients: |
RES = @dal_mdl_wdg_opn("iwf_lis_ent /PAR= EDB-ARTICLE EDB-ART-SLI") //opens item list WDG = widget_id() RES = @wdh_upd_lis() // update list, show existing items row_select(WDG,2) // select second row, this is to be edited by iwf_edt_lis RES = @iwf_cls_edt() // set closed edit mode RES = @iwf_edt_lis() // set selected row in edit mode, widget is modal now widget_close(WDG) // close modal widget when edit action is completed |