Home » Developer & Programmer » Forms » Urgent: GO_BLOCK not working
Urgent: GO_BLOCK not working [message #81471] Fri, 21 February 2003 03:06 Go to next message
Messages: 36
Registered: October 2002
Hi GUys,

Can anyone help with this situation? I have a when-button-pressed trigger that has alot of processes. One in particular, it calls a block for which a value must be entered. Based on that value entered it, the code goes on to do other stuff.

My problem is that the block is not called but simply executes the code that follows the go_block command. I included the SYNCHRONIZE command as well but still does not work.

Code e.g.

if :b1.name is null
end if;

Note: continue_process is executed without me ever seeing b1. I am running Oracle Forms 9i on a 9i database.

Can someone please assist

Re: Urgent: GO_BLOCK not working [message #81477 is a reply to message #81471] Fri, 21 February 2003 09:12 Go to previous messageGo to next message
Messages: 324
Registered: January 2003
Senior Member

you should navigate to an item in that block
so add go_item('block.item')
and to test it, add as the next line command
then you will see if it really goes to the item..
Re: Urgent: GO_BLOCK not working [message #81505 is a reply to message #81471] Tue, 25 February 2003 04:33 Go to previous message
Messages: 164
Registered: April 1999
Senior Member
And if you do not want to "continue process" if that item is null, you might want to code it like this:

if :b1.name is null
MESSAGE('This Item MUST be Entered'); PAUSE;
RAISE Form_Trigger_Failure;
end if;

This will return input focus to b1.name, display a message to let the user know what the problem is (and what they need to do to correct it), and prevent the steps after the END IF from being executed.

Hope this helps,

Previous Topic: Developer2000
Next Topic: Winhelp file in forms6i ?
Goto Forum:

Current Time: Tue Nov 30 11:22:26 CST 2021