Record deleted by another user

ziller

Member²
Hello,

i'm using DOA 4 and having the following problem :

i have a dbgrid connected to a toracledatastet

in the onbeforeinsert event of my dataset i make a savepoint

i have a cancel button that make a rollback

when i add a record to my dbgrid, post-it and then click on the cancel button the new record stay in my dbgrid

then when i try to delete it i get the "record deleted by another user" message

any idea?
 
If I understand correctly the dataset inserts a record, that is subsequently rolled back by your cancel button, and the dataset is not aware of this? This would indeed lead to the problem described. The dataset is inconsistent with the database state.

------------------
Marco Kalter
Allround Automations
 
Back
Top