[patch_done] Filtered table error after post violates filter

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
Ramon1975
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 06.04.2012, 20:43

[patch_done] Filtered table error after post violates filter

Post by Ramon1975 »

When in a filtered table (using event OnFiltered) a field is changes, such that the record will be filtered out, then after commit it raises an exception.
Example:
Filter is on field 'Active = True' and I set in GUI Active to False and press commit, it comes up with an error.

The error originates from TZAbstractDataset.InternalPost where it tries to locate the bookmark (which is not valid off course). I fixed it by checking the validity of the bookmark and if it is not valid, I don't jump to the bookbark and also don't 'resync'
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

Are you sure yo've the latest revision? The Bookmark issues are solved since two weeks...
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Locked