Re: Q: FORMS 4.5 when validate item

From: NLoske <nloske_at_aol.com>
Date: 1996/05/10
Message-ID: <4n0o9q$pfg_at_newsbf02.news.aol.com>#1/1


>I have a when-validate-trigger on an item and if it is invalid I raise
>form_trigger _failure. If the user enters an invalid value in this
>field my error message appears and focus is returned to the text item.
>If the user then presses the Cancel button to exit the form the
>validate trigger fires again before any code in the when button is
>exceuted. How do I get it so that if the user wants to exit they can?

I have run into the same limitation of Forms. If you use Validation you

can not leave the item until validation succeeds.  In my situation the
user entered data for the item in another window.  So the item had to be
valid before the other window could be displayed.  My solution is to use a
temporay table with no validation and do the validation myself. It can get to be a mess but you have to do something to get around the inherent limitations of Forms.

Good Luck, Received on Fri May 10 1996 - 00:00:00 CEST

Original text of this message