Posted By: SvenHeuer OnDelete not called - 10/25/01 07:22 PM
Marco,

is this a WAD?

TDataSet in CachedUpdate (Master of a Detail DataSet)
Insert a record (and do not post it). Insert a record on a detail DataSet. Delete the Master-Record.

The OnDelete handler will not be called ?

Greetings
Sven
Posted By: Marco Kalter Re: OnDelete not called - 10/26/01 04:10 PM
Before looking into this, which OnDelete handler are you referring to?

------------------
Marco Kalter
Allround Automations
Posted By: SvenHeuer Re: OnDelete not called - 10/26/01 05:44 PM
You're right. The handler has the correct name:

TOracleDataSet.BeforeDelete(DataSet : TDataSet)

Greetings
Sven
Posted By: Marco Kalter Re: OnDelete not called - 11/01/01 04:09 PM
If the newly inserted record isn't posted yet, it will effectively be cancelled when you delete it. That's why the BeforeDelete event does not fire.

------------------
Marco Kalter
Allround Automations
© Allround Automations forums