DtvLong dal_wdh_del_lis ()

Temporarily deletes the records selected in the widget mask and copies them into the trash-basket widget.

Input Parameters Significance
none -

Output Parameters Significance
none -

Return Code Significance
0 no error
1 no Delete privilege for record
2 record locked
3 ereror in Pre-Action tigger
4 database error while deleting if
5 depending records exist
6 error while creating the virtual widget

Attention! The function dal_wdh_del_lis is no userexit. The identical function dal_iwf_del_lis can be called as a userexit instead. From within a program you can call either dal_iwf_del_lis or dal_wdh_del_lis, depending on the return code required.

If the function is called from within a userexit, the records to be deleted must previously have been marked as selected in the mask using the function dal_mas_set_drt_rec and Dirty-Flag '+'.

Before deleting DataView checks for delete privileges, locking, existence of depending elements, and the return code of the pre_action-trigger in delete mode for each selected record. If these checks result in the conclusion that the record may not be deleted, DataView will output a warning in the message window and cancel the procedure.

If the mask displays elements of data base tables in a foreign format, DataView will not check for locking or existence of depending elements.