Home » Developer & Programmer » Forms » Go_Block in Post-Block
icon5.gif  Go_Block in Post-Block [message #227320] Wed, 28 March 2007 00:27 Go to next message
pragatimathur
Messages: 42
Registered: July 2006
Location: DELHI
Member
Hello!!
Suppose i have two blocks A and B
And in B block, Post-Block Trigger i have to go to A block.
Then How will i go to A Block as Go_Block is a restricted built-in.
(I have to use Post-Block trigger only)

Thank You
Re: Go_Block in Post-Block [message #227333 is a reply to message #227320] Wed, 28 March 2007 01:06 Go to previous messageGo to next message
bhupinderbs
Messages: 67
Registered: July 2006
Location: Bangalore
Member
Hi
Do whatever validations you want to do in POST-BLOCK
and write Go_Block('A') on any navigable trigger
in block B where the cursor is.

Bhupinder Singh
Re: Go_Block in Post-Block [message #227335 is a reply to message #227320] Wed, 28 March 2007 01:12 Go to previous messageGo to next message
Frank
Messages: 7901
Registered: March 2000
Senior Member
If you only have two blocks, where do you expect the focus to go when you leave block B?
So, why would you need to explicitly send it to block A?
Re: Go_Block in Post-Block [message #227339 is a reply to message #227335] Wed, 28 March 2007 01:18 Go to previous messageGo to next message
pragatimathur
Messages: 42
Registered: July 2006
Location: DELHI
Member
But if suppose i have 3 blocks then ?
Re: Go_Block in Post-Block [message #227349 is a reply to message #227339] Wed, 28 March 2007 01:36 Go to previous messageGo to next message
Frank
Messages: 7901
Registered: March 2000
Senior Member
Then why do you start your question with "Suppose I have two blocks"?
And why do you send me to block A if I choose to go to block C?
Re: Go_Block in Post-Block [message #227389 is a reply to message #227320] Wed, 28 March 2007 02:27 Go to previous messageGo to next message
pragatimathur
Messages: 42
Registered: July 2006
Location: DELHI
Member
Whatever block u want to go....
but can we do it in Post-Block trigger. If then how?
Re: Go_Block in Post-Block [message #227618 is a reply to message #227389] Wed, 28 March 2007 15:47 Go to previous message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Open Forms Developer Online Help System and search for "About Restricted Built-in Subprograms". Read it, understand why you can't use restricted GO_BLOCK in a POST-BLOCK trigger.

Don't navigate to another block; as the POST-BLOCK fires, navigation (obviously) already occurred. So, instead of explicitly going to another block using the GO_BLOCK built-in, why wouldn't you set block Navigation properties called "Previous (and / or) Next Navigation Data Block" to desired values? By default, you'll move between blocks in order they appear in the Object Navigator.
Previous Topic: forms60_path
Next Topic: Forms Migration ?
Goto Forum:
  


Current Time: Sun Feb 02 13:00:02 CST 2025