求助:出现这个错误 "Couldn't perform the edit because another user changed the record." (

T

tdKno

Unregistered / Unconfirmed
GUEST, unregistred user!
求助:出现这个错误 "Couldn't perform the edit because another user changed the record." (200分)<br />在dbgrid中,delete 一些记录后,再用applyupdate更新后出现这个错误.
"Couldn't perform the edit because another user changed the record."
各位,这是什么原因啊?

 
delete之后,会自动post。不需要 applyupdate了。
 
注意中间层 UpdaeMode 的设定以及客户端关键字的设定
 
你在提交数据时,使用了事物提交,并且该事物会触发别的事件,而这个事件试图修改用
事物提交的数据,这时就会出现上叙错误。只要把那个事件也写在事物提交里即可。
 
改变锁的级别
 
是本地数据库.使用本地cache的.

我改用Tdatabase的applyupdates,并设定transaction为 dirtyrecord,
这时就ok.

不过,个中原因不太清楚.
 
应该用DataBase的更新啊
解决了就好!@
 
事务没有提交嘛!
 
顶部