Re: WHEN_BUTTON_PRESSED Trigger Firing Problem
From: Francisco C P de Almeida <piragibe_at_esquadro.com.br>
Date: 1997/03/16
Message-ID: <01bc31f5$183f9560$7a55ffc8_at_chico>#1/1
Date: 1997/03/16
Message-ID: <01bc31f5$183f9560$7a55ffc8_at_chico>#1/1
When you leave a processing unit in a FORM, such as a block or a field, for instance, FORMS performs the validation defined for it, unless you explicitly state that you don't want it to happen. So, a required field missing would not be allowed to stay missing; dates should be valid and all validation triggers would have to succeed. Your ...(NO_COMMIT) statements just say that you don't want things posted and commited to the database, but they do not state that you don't want validation processing to take place. Use EXIT_FORM (NO_VALIDATE) if you want to bypass validation processing.
-- Francisco C P de Almeida, consultor Tel: 55-21-5125064 piragibe_at_esquadro.com.br Mark T. Waring <mwaring_at_umabnet.ab.umd.edu> escreveu no artigo <Pine.A32.3.94.970314131347.17076A-100000_at_umabnet.ab.umd.edu>...Received on Sun Mar 16 1997 - 00:00:00 CET
>
> I have Developer 2000 with Forms 4.5. where I have a form with data
fields
> and some buttons.
>
> In the WHEN_BUTTON_PRESSED Trigger for the EXIT button, I coded:
> exit_form(NO_COMMIT);
>
> In the WHEN_BUTTON_PRESSED Trigger for the CLEAR FORM button, I first
> assigned valid values to all of the required fields, i.e., :field:=1;
> Then I coded: clear_field(NO_COMMIT);
>
> Both triggers work fine, except when the cursor is sitting on an empty
> required field. Then they don't fire at all until a valid value is
typed.
>
> There must be a way around this, but I sure don't know it.
>
> I'd appreciate any help I can get.
>
> You can e-mail me at mwaring_at_umabnet.ab.umd.edu
>
> Thanks
>
> Mark Waring
>
>
>
>
