Subject | RE: [IBO] Trouble in catching Post error |
---|---|
Author | Helen Borrie (TeamIBO) |
Post date | 2002-02-21T09:47:13Z |
At 10:51 AM 21-02-02 +0200, Riho-Rene Ellermaa wrote:
If you want to do client-side validation, place code in the BeforePost event. You can raise a Delphi exception there and prevent the Post call altogether.
regards,
Helen
regards,
Helen Borrie (TeamIBO Support)
** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at www.ibobjects.com
>They were not called (I had breakpoint in the first line of OnPostError eventhandler). I haven't done anything fancy - just created query and added OnPostError event to it.For "Post error" read "Prepare or Commit error". So, if your database had no triggers or CHECK constraints on those fields, there would be no error.
>Maybe "missing necessary fields" doesn't qualify as Post error?
If you want to do client-side validation, place code in the BeforePost event. You can raise a Delphi exception there and prevent the Post call altogether.
regards,
Helen
regards,
Helen Borrie (TeamIBO Support)
** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at www.ibobjects.com