iwf_frm_ent

Creates the defined form of the entity and displays it on the screen.


Parameters:

[entity [form]]

Entity
Name of the entity. If you do not specify an entity, DataView creates a sub-menu at the item with all entities you already created in your application.

Form
Name of the form for the entity. Only specify forms containing elements of the master table of the entity. You can only specify a form together with the entity. If you do not specify a form, DataView will display the default master form.


Usage as:

On_Select userexit in each menu/button-area or On_Event userexit in each state of the user interface.


Explanation:

If you invoke the userexit in the Select menu of a list, i.e. at the selected record, DataView will fill only the fields of the form with the current data if you defined either no userexit or the wdh_upd_lis userexit at the pre_mask-trigger of the form. Each other Pre_Mask userexit prevents that the data of the selected record are displayed. You will then have to start a new query using the standard functions refresh or query to fill the form with data. However, the relation to the selected, calling record will be lost.