Refresh ONLY ONE - current record

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
Ronalds
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 04.10.2006, 06:27

Refresh ONLY ONE - current record

Post by Ronalds »

I search/read this forum, but I can't find any suitable solution to this problem.

Method REFRESH - is VERY bad solution, because it reload all records from server.

I use MYSQL 5. An triggers to calculate some field values before update/insert. But I cant see this values in my client.

In Firebird/interbase access components FibPlus is property - RefreshSql, This SQL is running when method REFRESH is executioned. When I set this method to something like this

"select * from table where ID= :OLD_ID"

only one - current record is loading form server - VERY QUICK. And this show record values - set from triggers....

In case of ZEOSlib I can't use generators to set field values. Or i need refresh all dataset after every post and lose performance.... :(
User avatar
fduenas
Zeos Dev Team
Zeos Dev Team
Posts: 132
Joined: 26.08.2005, 08:12
Location: Cancún

Post by fduenas »

Hi try to use the TZUpdateSQL object, it has now a property refreshSQL where you can add this kind of sql, TZUpdateSQL have to be attached to the TZQuery or tztable. try to download at least revision 98 of zeosdbo version, it is now published here and have this property.
Post Reply