Inserting a record on a table the events Before Post,Before Insert ,On error arent executed if we have required fields as null on a table , this should be triggered before even the dataset do check the required fields and raise the exception.
Im trying to show my own error boxes, so i tried it on this events get the required fields and show a list instead of the default exception dialog.
Any idea to turn around this problem ?
Before Post,Before Insert, On error
Moderators: gto, EgonHugeist, olehs
Before Post,Before Insert, On error
where's the code ..
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
sfxcc,
Hum that's a good question. I don't think there is a generic way to suppress the exceptions.
Does this mean the Before Insert/Edit/OnError events do NOT work like expected? Did you try to use TZQuery.CachedUpdates := True; ? This avoids the posting to the db and commiting the changes. So you can check all Fields by your selves and exec ApplyUpdates afterwards.
Is that what you want to know?
Michael
Hum that's a good question. I don't think there is a generic way to suppress the exceptions.
Does this mean the Before Insert/Edit/OnError events do NOT work like expected? Did you try to use TZQuery.CachedUpdates := True; ? This avoids the posting to the db and commiting the changes. So you can check all Fields by your selves and exec ApplyUpdates afterwards.
Is that what you want to know?
Michael
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/
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/