iwf_frm_typ
Creates the defined form of the type derivative of an entity and displays it on the screen.
Parameters:
[entity [type [form]]]
- Entity
- Name of the entity, whose type derivative form DataView is to open. If you want to use the userexit in items of object dependent menus (e.g. in Select menus), you will not have to specify the entity as parameter, because DataView reads the entity name from the active widget. If you want to use the userexit in items of object independent menus (e.g. in sub-menus at the top menu), you will have to specify the entity as parameter.
- Type
- Name of the type derivative for the entity. You can only specify a type together with the entity. If you do not specify a type, DataView will create a sub-menu with all type derivatives you already created for the calling entity in your application.
- Form
- Name of the type derivative form. Only specify forms that contain elements of the type table of the entity. You can only specify a form together with the type. If you do not specify a form, DataView will display the default type 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.