# Java Client Customizing

## Closing Modal Widget

| ### No server side event loop
| Code that uses [dal_]evt_get_nxt needs to be adapted to use the modal API of the dal layer or a respective zag function. For modal widgets that do not have a special edit menu, it is necessary to set the edit menu to EDB-BAS-EMPTY. Otherwise, the standard DataView edit menu is displayed if the user clicks the right mouse button.
| ### Opening a select menu from C
| Use zag_men_opn_sel or dal_mdl_opn_men to display the menu. Use dal_men_ret_sel to get the result.
| ### Opening a select menu from LogiView
| Call the LogiVew userexit xjcl_lgv_map_men RES = #xjcl_lgv_map_men(MENU_NAME (String, IN), SELECTED_ITEM (String, OUT), SELECTED_ROW (Integer, OUT) MENU_NAME [String, IN] : Name of the menu SELECTED_ITEM [String, OUT] : Selected text SELECTED_ROW [Integer, OUT] : Selected row RES: 10 - parameter 1 has wrong type 20 - parameter 2 has wrong type 30 - parameter 3 has wrong type 50 - menu not found 100 - menu could not be displayed 999 - menu aborted
| ### Close Modal Widget with iwf_exi_edt
| The userexit iwf_exi_edt to close a modal widget must be added to the button userexit directly. Calling it from LogiView does not work. Instead, use something like LIST MY_LGV/myProc & iwf_exi_edt(Q).