Home » Developer & Programmer » Forms » clear_block(no_validate)
clear_block(no_validate) [message #357883] Fri, 07 November 2008 00:49 Go to next message
smithagirish
Messages: 10
Registered: March 2008
Location: kochi
Junior Member
hello

i have a block containing a number field "amount" .i had given a validatation in when-validate-item to validate -ve values
There is also a "cancel" button in the same block...in tht i have given clear_block(no_validate)

now the problem is ...
i will enter a -ve value for amount and directly take the mouse pointer and click the cancel button.but its firing tht when-validate-item trigger of the amount field ...how can i prevent firing this...

can u pls help me on this
Re: clear_block(no_validate) [message #357887 is a reply to message #357883] Fri, 07 November 2008 00:53 Go to previous messageGo to next message
Littlefoot
Messages: 20901
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Could you, please, translate part of your post to English?

What would "-ve" or "tht" or "u pls" mean?
Re: clear_block(no_validate) [message #357891 is a reply to message #357887] Fri, 07 November 2008 01:08 Go to previous messageGo to next message
smithagirish
Messages: 10
Registered: March 2008
Location: kochi
Junior Member
sorrry..
-ve means negative
tht means that
u means you
pls means please
Re: clear_block(no_validate) [message #357901 is a reply to message #357891] Fri, 07 November 2008 02:40 Go to previous messageGo to next message
Littlefoot
Messages: 20901
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Well, I've written a sample form consisting of a numeric item and a push button. Two triggers: WHEN-VALIDATE-ITEM on the numeric item
message('validating item');
pause;
and WHEN-BUTTON-PRESSED trigger
clear_block(no_validate);

  • if I enter a number into an item and press <ENTER> key, a message ('validating item') appears on the screen
  • if I enter a number into an item and click the push button, item gets cleared and no message appears.

In other words, I can not reproduce your case. Could you post YOUR sample form so that we could see/run it?
Re: clear_block(no_validate) [message #358174 is a reply to message #357883] Mon, 10 November 2008 00:20 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
If you have changed the contents of an item you can't prevent the When-Validate-Item from firing when you leave it. Make the button non-navigable and see what happens.

David
Re: clear_block(no_validate) [message #358434 is a reply to message #358174] Tue, 11 November 2008 05:21 Go to previous message
sinida1984
Messages: 83
Registered: September 2007
Location: India
Member
Is there any raise form_trigger_failure in that validate-item trigger?
Previous Topic: Letters Reports in 10g
Next Topic: forms 6i
Goto Forum:
  


Current Time: Fri Dec 09 13:39:21 CST 2016

Total time taken to generate the page: 0.10927 seconds