Navigate to tab item at start [message #431789] |
Thu, 19 November 2009 08:23 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
mmcubed72
Messages: 1 Registered: November 2009 Location: Wis
|
Junior Member |
|
|
I have a tab canvas sitting on a content canvas. All of the fields are in one block sitting on one table. I would like to navigate to certain fields on different tabs based on a parameter passed in at start-up. I have go_items (based on parameter value) in the WHEN-NEW-FORM-INSTANCE trigger - but they do not work. Upon start-up, navigation always goes to the first item in the block that is on the content canvas (there isn't a go_item for that field). Any suggestions?
Here is the code:
IF :PARAMETER.PRM_TAB = 'S' THEN
GO_ITEM('BLK_MAIN.SPECIAL_CONDITION');
ELSIF :PARAMETER.PRM_TAB = 'P' THEN
GO_ITEM('BLK_MAIN.PHARMACY');
ELSIF :PARAMETER.PRM_TAB = 'P' THEN
GO_ITEM('BLK_MAIN.RESEARCH');
ELSE GO_ITEM('BLK_MAIN.ONC_HEME_MD');
END IF;
THNX!
-Mark
|
|
|
Re: Navigate to tab item at start [message #431808 is a reply to message #431789] |
Thu, 19 November 2009 11:05 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
Does the first item on the block have it's required property set to true?
Do you have any code that runs at forms startup apart from what you've shown us?
Are you getting any error messages?
Is it going to the item you tell it and then back to the first item or straight to the first item - put a message in the WHEN-NEW-ITEM-INSTANCE on the item you want it to go to to check.
|
|
|