Handle master-detail (entity) changes

i have the following scenario.
I have two tables in a master-detail relationship (most common example whould be a sales invoice -
header and details).
Is there a way whenever there is a change in any of these 2 tables to have the changes of both tables on server so that i can have a history table for the whole entity and not separate tables?



You can review delta changes on server-side (for example in dataservice.OnBeforeProcessDeltas or dataservice.OnAfterProcessDeltas or in TDABusinessProcessor events) and create entry in your history table.