Home » Developer & Programmer » Forms » Force Exit from Form (oracle 10g, win xp)
icon2.gif  Force Exit from Form [message #507857] Wed, 18 May 2011 05:18 Go to next message
myclassic
Messages: 136
Registered: December 2006
Location: Pakistan
Senior Member
I simply run the form wizard, placed some item on the canvas through wizard. some items are required.

if i want to exit from form.
placed a button and coded exit_form; also applied no_validate;

but it shows message field must be entered.
i want to exit even if some required fields are entered and some are remaining.

i can not set required to NO.

How to force exit? I want to exit in any case, any state, any mode.
Regards

Re: Force Exit from Form [message #507860 is a reply to message #507857] Wed, 18 May 2011 05:23 Go to previous messageGo to next message
cookiemonster
Messages: 13937
Registered: September 2008
Location: Rainy Manchester
Senior Member
Is the button in the same datablock as the required field?
Re: Force Exit from Form [message #507862 is a reply to message #507860] Wed, 18 May 2011 05:35 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Try to set button's KEYBOARD NAVIGABLE and MOUSE NAVIGATE properties to "No". Leave
exit_form(no_validate);
in a WHEN-BUTTON-PRESSED trigger. Run the form, test it.
Re: Force Exit from Form [message #507863 is a reply to message #507860] Wed, 18 May 2011 05:36 Go to previous messageGo to next message
myclassic
Messages: 136
Registered: December 2006
Location: Pakistan
Senior Member
Yes it is in the same block.
but if we change the block, it exits if the data entery is not started.
if atleast one field is filled, it asks for rest of the required fields.


i want force exit at any time.

regards
Re: Force Exit from Form [message #507864 is a reply to message #507862] Wed, 18 May 2011 05:39 Go to previous message
myclassic
Messages: 136
Registered: December 2006
Location: Pakistan
Senior Member
sir, thanks. it worked by setting the navigable properties to NO.

thanks.
Previous Topic: set_block_property
Next Topic: FORM SYNCHRONIZATION
Goto Forum:
  


Current Time: Sat Sep 07 15:32:56 CDT 2024