Re: Forms 5.0 Error Trapping

From: Hans-Dieter Wehe <hd.wehe_at_t-online.de>
Date: Thu, 22 Apr 1999 20:30:15 +0200
Message-ID: <371F6AB7.255F35C_at_wehe.de>


A better way for displaying error messages: In the forms-builder define an ALERT (you find it in the object browser). Give it a name (e.g. my_alert) and define a alert text in the property panel. In the on-error trigger you may change the altert text. Then use show_alert ( 'my_alert' ).

Ken Halsted schrieb:
>
> I was wondering how is the correct way to Trap errors in Forms 5. I know
> you can use an ON-ERROR trigger on the block involved, but in the trigger
> itself, how do you trap specific FRM-XXXX error messages.
>
> I want to print a nice message box on the screen with a user-informative
> message instead of just seeing the normal Forms error. Also, how do I get a
> message box to appear. Usually I do something like the following:
>
> IF ERROR_NUMBER = (WHATEVER) THEN
> MESSAGE('TESTING'); MESSAGE(' '); SYNCHRONIZE;
> RAISE FORM_TRIGGER_FAILURE;
>
> Is there a better way?
>
> Ken.
>
> --
> _________________
> Kenneth W. Halsted
> Mountaire Corporation
> ph: (501) 399-8812
> url: http://www.mountaire.com
> email: kenman_at_mail.snider.net
Received on Thu Apr 22 1999 - 20:30:15 CEST

Original text of this message