Java Client Customizing

LogiView Programming

When doing LogiView coding, especially with respect to using modal widgets, the LogiView code needs to be adapted to work with the Java Client. The changes are identical to the ones required for the Web Client (so maybe you have actually implemented them already).

Support for modal widgets (iwf_cls_edt)

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 value—open edit mode—after 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.

Example: Using iwf_cls_edt with iwf_ins_elm

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
 

 

Example: Using iwf_cls_edt with iwf_dup_elm

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
 

 

Example: Using iwf_cls_edt with iwf_edt_lis

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