DtvLong dal_dmi_cre_men (tit)

Creates the menu for the passed name on the server using the entries in the system entities T_MENU, T_SELECTION, and the system relation T_MEN_SEL.

Input Parameters Significance
char *tit name of the menu in the data base

Output Parameters Significance
no -

Return Code Significance
value Id of the menu
0 no menu created

This function is the elementary function for creating menus on the server based on the data base definitions.

The menu is only created in local server memory. You then have to explicitly output it on the client screen.

The function uses the recursive algorithm or a structure resolution procedure, which is directly stored in the database as a stored procedure.The recursive function is implemented in the local function dal_dmi_cre_dal_men_rkv and the new algorithm is implemented in dal_dmi_cre_dal_men_hie. If dal_dmi_cre_dal_men_hie returns an error, a message will be output and the menu will be created using the recursive function.

For each selection, dal_men_sel_chk will be additionally called in order to check whether it is to be added to the menu. Here the selection cannot be added as disabled.