Page 1 of 1

OnUpdateRecord and OnApplyUpdateError

Posted: 05.02.2008, 06:28
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

Posted: 05.02.2008, 08:51
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

Posted: 05.02.2008, 13:22
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

Posted: 05.02.2008, 14:43
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