DtvLong dal_iwf_frm_cns (cns_mas)

Creates the defined form widget for the constraint, loads it with the corresponding data of the ident number of the selected record in the widget and outputs it on the screen.

Input Parameters Significance
char *cns_mas [< or > = direction of the constraint]
name of the constraint [> < = selection menu]
name of the form [> < = default form]

Output Parameters Significance
none -

Return Code Significance
0 no error
1 wrong constraint name passed
2 no access to the entity granted
3 no form for the entity defined
4 no record in the current widget selected
GLB_RET_BRK menu cancelled < glbdef.h >

Can be invoked as on_select-userexit in Select-menus at the widget or as on_event-userexit in any state of the user interface.

If you do not pass any constraint, DataView will create a selection menu containing all constraints defined for the selected record.

Using the characters > > < or > < < in front of the constraint you can influence the direction of the constraint.

You can only pass a form together with the constraint.

If you do not specify a form, DataView will output the form you created as default form for the linked table on the screen.

All parameters must be separated by spaces.