Using the function dal_wdh_wri_lis you can write records in the data base, which were edited (update operation) or newly inserted (insert operation) in DataView. DataView realizes for each records with the help of the content of the internal record ident number, which kind of operation you execute for the data base table.
If - because of wrong entries or transaction problems - it is not possible to write a record into the data base, the record-dirty-flag remains set after returning from the function dal_wdh_wri_lis (drt = m). In case of success the record-dirty-flag will be automatically reset by DataView (drt = 0). Using the function dal_mas_ret_drt_rec you can enquire the record-dirty-flag for each record.
Program the following sequence to write edited or newly inserted records into 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.
For instance you could write a field entry with dal_mas_wri_fld.
The field-dirty-flag must be set only once for each field, irrespective of whether you changed the field contents of one or several records in the column record buffer of the field.