Home » Developer & Programmer » Forms » TAB problem
TAB problem [message #183017] Wed, 19 July 2006 03:16 Go to next message
wency
Messages: 450
Registered: April 2006
Location: Philippines
Senior Member

I have tab canvas with three tabs. I want the first tab (Adjustment Information) to be the default when I show the canvas. The problem is, it always go to the third tab (Scope of works). Here is my code:

     tp_nm3 := GET_CANVAS_PROPERTY('adjust3', topmost_tab_page);
     tp_id3 := FIND_TAB_PAGE(tp_nm3);
     tp_lb3 := GET_TAB_PAGE_PROPERTY(tp_id3, label);

     if tp_lb3 LIKE 'Adjustment Information%' then
        go_block('eval_outwork');
     elsif tp_lb3 LIKE 'Parts%' then
        go_block('loa_prts_out');
     elsif tp_lb3 LIKE 'Scope of Work%' then
        go_block('scpe_wrks_out');
     end if;
Re: TAB problem [message #183023 is a reply to message #183017] Wed, 19 July 2006 03:37 Go to previous message
jowahl
Messages: 82
Registered: May 2006
Member
if you set the topmost page at the beginning of your code, i think this could solve your problem:

SET_CANVAS_PROPERTY('adjust3',TOPMOST_TAB_PAGE, '<tab_name>');

to get the name ot the tab open navigator node "Canvas - Tab".
Previous Topic: delete_record trigger in forms 10g
Next Topic: Saving problem
Goto Forum:
  


Current Time: Fri Sep 20 11:30:52 CDT 2024