Re: Q: FORMS 4.5 when validate item

From: Michael Kustermann <MKUSTERM_at_worldnet.att.net>
Date: 1996/05/11
Message-ID: <4n2ngd$j26_at_mtinsc01-mgt.ops.worldnet.att.net>#1/1


nloske_at_aol.com (NLoske) wrote:
>>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,

Dead simple

  • Make the button non-navigable
  • when-button-pressed trigger invoke exit_form(NO_VALIDATE);

Michael Kustermann Received on Sat May 11 1996 - 00:00:00 CEST

Original text of this message