# Web Client

## About LogiView Support

Using LogiView to customize the Web Client is generally the same as for other Agile e6 clients, with the exception of the differences described below. For more information on using LogiView, refer to the Agile e6 online Help Customizing Agile e6> Business Logic > LogiView.

### Defining LogiView user forms

A user form is a database form that is invoked by LogiView itself. User form names always have the prefix "LVF_" (for example, LVF_BO_INP) to distinguish them from other types of forms.

Usually a user form has two command buttons that users can click to close the form. The OK button (userexit iwf_cls_edt and parameter "E") closes the form and saves any edits. The Cancel button (userexit iwf_cls_edt and parameter "Q") closes the form without saving edits. If a form does not have these edit buttons, the Windows Client allows users to right-click and then use the context menu to close the form. Because this mechanism is not supported in the Web Client, however, Agile recommends that you include edit buttons when defining a user form. Otherwise, users will need to either click the Close button or press ESCAPE to close the form.

### 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.

Note: The function iwf_cls_edt is only executed in the Windows Client but not in the Web and Java Client. Use the function dal_mdl_wdg_opn in the Web and Java Client instead and add the function iwf_cls_edt to ensure compatibility with the Windows Client as described in the example below.

The following tables describe how the following userexits are used with iwf_cls_edt to customize the Windows Client and the Web/Java Client.

- iwf_ins_elm – standard function for creating new records in a widget mask
- iwf_dup_elm – standard function for copying records in a widget mask
- iwf_edt_lis – standard function for editing records in a widget mask

### Example: Using iwf_cls_edt with iwf_ins_elm

#### Previous Procedure for Windows Client: RES = @iwf_lis_ent ("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

#### New 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

#### Previous Procedure for Windows Client: RES = @iwf_lis_ent ("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

#### New 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

#### Previous Procedure for Windows Client: RES = @iwf_lis_ent ("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 update mode, widget is modal now widget_close(WDG) // close modal widget when edit action is completed

#### New 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

###