With the function dal_wdh_del_lis you can delete records in virtual widgets. The function uses DataView in an identical way for interactive deleting, too. That is why you do not have to explicitly program any checks on access privileges, locks, and reference elements. DataView automatically performs these checks when you use the function. This function is a decisive security factor for sensitive delete operations.
If you executed dal_wdh_del_lis, the deleted records are in the trash-basket widget, as it is also true for interactive mode. With dal_wdh_rol_tra you can undo the temporary delete process for individual records. To finally delete the records in the trash-basket widget the function dal_wdh_del_tra is available.
If records in the data base cannot be temporarily deleted because of missing access privileges, locks or reference checks, the record remains unchanged with all related elements in the data structure of the widget.
Program the following sequence to delete records in the data base:
In case of relations widgets you should always specify the full name of the relation (entity-1, entity-2 and view) and then define the parent element of the relation with the function dal_wdg_set_ide.
Attention! This function finally deletes all records including any previously existing records in the trash-basket.