DtvLong dal_dbi_set_del (val)

Sets the reference check flag to the value passed.

Input Parameters Significance
DtvLong val value for reference check flag:
0 = relation and type delete (default)
1 = no relation delete
2 = no type delete
3 = no relation and no type delete

Output Parameters Significance
no -

Return Code Significance
0 no error

The reference check flag allows you to control the DataView logics when deleting related records. DataView checks by default (val = 0) the record to be deleted for depending references, and deletes (if any) all records in related relation and type tables. For this can take extremely long in case of many relation tables (especially in case of type relations) - all related tables must be searched - you can disable checking. However, this is only possible, when deleting is done from within the application. Set the reference check flags prior to each final delete process (e.g. at the pre_action-trigger). After the delete process DataView automatically resets the flag to the default value val = 0.

Attention! Only use this function if the reference entries without any exception always have to be deleted from within the application. If this is not the case, severe inconsistencies in the data model can occur.