Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TABS in ORACLE forms

Status
Not open for further replies.

Apprentice101

IS-IT--Management
Aug 16, 2004
66
US
In oracle forms 6i

I have one canvas multiple tabs, how do I tell forms which tab do I want to start the form with? for instance

Tabs are:

ABCDEF

I want tab A to be the first one the user sees as the applications opens.

thanks!!
 
but where do I specify that?

I tried to put a Trigger "Pre form" that said: goblock(tab A)

but I got an error saying that Goblock was not allowed to be used that way.

 
You need to put it in WHEN-NEW-FORM-INSTANCE not PRE-FORM.

PRE-FORM is a restricted procedure, therefore you cannot use navigation commands within it.
 
After your show_canvas (assuming that's what you're using) do a go_item (TAB A item)

Now if you can't uniquely identify an item that only exists on TAB A let me know - there are ways around this problem too.
 
Hey guys,

well, I created a trigger "WHEN-NEW-FORM-INSTANCE"
and the coding was:

GO_BLOCK('block A');

by the way, block A is represted in TAB A

I didnt get any errors, however, the application stills starts on "TAB B" Isnt there some sort of form property that should specify which TAB should be the first one? It drives me crazy cause it always starts on TAB B as if I had specified that!

thanks for all your help.. :)
 
Dont just navigate to the block, navigate to an item on the block - an item thats on TAB A
 
ok, you guys please bare with me, this is my first application.

I recoded it as:

GO_BLOCK('PATIENT.med_record_no');

and it gave the error that said : no such block
I tried it with GO_ITEM and still didnt work.

thanks again!

 
OK you said in a previous message you did a go_block ('block A name') and that didn't cause any errors so do that again. After that do a go_item('your_item_name'). Don't put the block name in here just the item name.
 
Well, goodnews and bad news, TomReid, I really appreciate your help, so weather we get it to work or not, thanks a lot! really. anyhow, I think the least thing I can do is to tell you what has happened.

As the form starts, it shows TAB B for like 2 seconds, then jumps to TAB A, but guess what? TAB A shows empty! (no items), after that, if I switch to Any other tab and then go back to A then it shows all the ITEMS, another thing to mention is that I think that even when the trigger when-new-form-intance executes sending go_block('Tab_A') and go_item('item1'), the focus still remainds in TAB B cause if right after the from runs, I hit F7 and F8 to retreive something, the results show on TAB B.

 
Also look at set_canvas_property bult-in and the property TOPMOST_TAB_PAGE
 
one window, one canvas, I found those built-ins last night, I will play with them today. from what I read, it sounds like they should be useful. I will let you know.


Thanks a bunch!

 
Tom,
you aer going to laught, guess what fixed it?
the tab that will display is the tab where your first navigable item is located.

I didnt figure it out, another guy told from the forum told me.

I think you and I were trying to force the first tab in the even when this previous condition was not met.
anyway, the condition is met (the first navigable ITEM can be set on the first tab) so that solves it.

thanks so much, I learved quit a bit. :)

joey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top