Re: Re:Forms 3.0 problem

From: Paul Narth <pnarth_at_axion.bt.co.uk>
Date: 22 Dec 1993 09:03:47 GMT
Message-ID: <2f92hj$d8v_at_zaphod.axion.bt.co.uk>


>If I called trigger B from trigger A, how can I cause trigger A to fail
>if trigger B has failed ? It seems that trigger A still proceeds even if
>I specified FORM_FATAL or TRIGGER_FAILURE.

In trigger A write:

  execute_trigger('trigger_B');
  if not form_success
  then

     message('Trigger B Failed, so failing trigger A');
     raise form_trigger_failure;

  end if;

It is important to perform the test immediately after the execute_trigger statement.

Regards

Paul

/******************************************************************************/
Paul Narth                       p.narth_at_axion.bt.co.uk / cs90pkn_at_brunel.ac.uk
Ipswich Engineering Centre
B81 G61, BT Labs
Martlesham Heath
Ipswich, Suffolk
England, UK
IP5 7RE 0473 640746 / +44 473 640746
/******************************************************************************/
Received on Wed Dec 22 1993 - 10:03:47 CET

Original text of this message