OnUpdateRecord and OnApplyUpdateError

Freature requests from users for ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist, mdaems

Post Reply
aroper
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 04.02.2008, 00:11
Location: South Carolina, USA

OnUpdateRecord and OnApplyUpdateError

Post by aroper »

Hi Guys,

First of all, great components!

For compatibility with BDE, it is nice to have OnUpdateRecord and OnApplyUpdateError. However, checking out the source, they are not called anywhere. Are there any plans to code these calls? Are there any patches to do so? If I wanted to code this myself, where would be the correct place to do so?

Thanks,
Tony
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Well, If you have the Delphi vcl sources available : check there when these events are handled...
Since what Delphi version these event are available? Just found OnUpdateRecord in D7 documentation, so I could check when that's called. I suppose the second event fires somewhere in the flow of the first one...
Just checked fpc sources : nowhere available.
To implement it you'll have to add it to the ZAbstractRODataset.pas or ZAbstractDataset.pas units.

I'll put this topic in the feature requests forum. So it doesn't sink down in this general forum.

Mark
Image
aroper
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 04.02.2008, 00:11
Location: South Carolina, USA

Post by aroper »

I believe this functionality was in place in version 5.x (at least in version 5.5.0 stable) in ZQuery.pas. The re-design of 6.x has left me confused as to where this would be handled in the code today.

Tony
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

My first impression is that these handles should be passed to the CachedResultset object that's behind the Dataset Object.
There it could be handled by the TZAbstractCachedResultSet.PostRowUpdates procedure.
Eventually you could put the handling of these events in the ZGenericCachedResolver but in that case it should also be added to the TZUpdateSQL program.

Mark
Image
Post Reply