Re: Forms 4.5 Menu Processing...
Date: 1997/10/03
Message-ID: <01bccfb2$baaf24e0$d33c1286_at_itwol-pc3963.itwol.bhp.com.au>#1/1
Vijay,
Adding the 'Enter' built-in ensures the WVI trigger fires, but to determine whether the trigger failed you then need to test whether 'Enter' was successful (ie. had an exception returned to it). Try using the FORM_SUCCESS built-in:
Enter;
IF Form_Success
THEN
DoSaveAE;
END IF;
Have a look at Form_Success and Form_Trigger_Failure in Forms Online Help.
Vijay Damodaran <vijayd_at_nortel.com> wrote in article
<3431143E.17C0_at_nortel.com>...
> Hi Al,
>
> Thanks for input. But I am still having some problems. If I put the
> enter key in the Trigger executed by both the Toolbar button and Save
> menu item, and the when-validate-item trigger fails and raises an
> exception, the processing continues and invokes the next procedure.
>
> The Trigger executed by both the toolbar button and menu item is as
> follows:
> ----
> enter;
> DoSaveAE;
> ----
>
> The When-Validate-Item trigger on the item is as follows:
> ------
> IF NOT ValidateName(:block.item_name) THEN
> ShowMessage('Validation Failed.'); -- This is my function which
> -- displays the message.
> RAISE FORM_TRIGGER_FAILURE;
> END IF;
> -----
>
> In this case, if the even if ValidateName(:block.item_name) returns
> false and the message is displayed, the DoSaveAE procedure is called,
> even though I want the Trigger to fail and stop processing.
>
Received on Fri Oct 03 1997 - 00:00:00 CEST