How to update a record before delete


(EvgenyK) #21

I can confirm that this is side effect.

You can reach this via setting LogChanges := False, updating values inside table, and set LogChanges := True.
after this, no delta change will be created and at next change this record, delta change will be created and all field values will be copied to OldValues arrays.

the same behavior you can reach via updating values inside OldValues for given TDADeltaChange


(marcantheunis) #22

so i shouldn’t rely on it? or is this unlikely to change in future releases?


(EvgenyK) #23

TDataService (i.e. TDataAbstractService descendant) has Schema and Connection properties.

also TDABusinessProcessor has Service property that is set to owner’s TDataAbstractService


(marcantheunis) #24

so i shouldn’t rely on it? or is this unlikely to change in future releases?


(EvgenyK) #25

this is unlikely to change in future releases


(marcantheunis) #26

great :slight_smile:
thx!