I use two ClientDataSets for a master-detail relationship with a DataSetProvider for each CDS. I don’t use a nested CDS for the detail, since I do an in-memory filtering for the master-detail relationship.
The problem I have is when I need to apply my changes to the underlying database (firebird). For detail INSERTs I have to apply the master first and for detail DELETEs I have to apply the detail first (without violating the master-detail relationship in the db). So far so good. But what shall I do when my detail CDS has a mixture of INSERTs and DELETEs? Then I cannot apply it before or after the master CDS.
How can I handle such situation, without using nested CDS?