‎2007 May 08 4:08 PM
Hello,
I have a Tab Strip.I am creating it using the tabstrip wizard.
I have a field on the first screen and tabstrip in the second screen.
Depending on the value in the parameter in the first screen,
i want the corresponding tab to be pressed and shown when the second screen is entered.
How can this be achieveds??
‎2007 May 08 4:31 PM
Hi
U need to insert a check for the value of the field of first screen, so in the PBO of the second one:
if tabstrip-activetab is initial.
case field.
when .... tabstrip-activetab = <ok-code for tab1>.
when .... tabstrip-activetab = <ok-code for tab2>.
endcase.
endif.Max
‎2007 May 08 4:12 PM
Hi,
TABSTRIP-ACTIVETAB = 'TAB_NAME'
Depending on the condition use the above code
Regards
Sudheer
‎2007 May 08 4:28 PM
Its not working!!
This is my code.........
TB_STRIP1-ACTIVETAB = G_TB_STRIP1-PRESSED_TAB.
CASE G_TB_STRIP1-PRESSED_TAB.
WHEN C_TB_STRIP1-TAB1.
G_TB_STRIP1-SUBSCREEN = '0201'.
WHEN C_TB_STRIP1-TAB2.
G_TB_STRIP1-SUBSCREEN = '0202'.
WHEN C_TB_STRIP1-TAB3.
G_TB_STRIP1-SUBSCREEN = '0203'.
WHEN C_TB_STRIP1-TAB4.
G_TB_STRIP1-SUBSCREEN = '0204'.
WHEN C_TB_STRIP1-TAB5.
G_TB_STRIP1-SUBSCREEN = '0205'.
WHEN C_TB_STRIP1-TAB6.
G_TB_STRIP1-SUBSCREEN = '0206'.
WHEN C_TB_STRIP1-TAB7.
G_TB_STRIP1-SUBSCREEN = '0207'.
WHEN OTHERS.
*&SPWIZARD: DO NOTHING
ENDCASE.
G_TB_STRIP1-PRESSED_TAB = TB_STRIP1-ACTIVETAB.
IF MDTB-DELKZ <> ' '.
IF MDTB-DELKZ = 'PA'.
TB_STRIP1-ACTIVETAB = 'TB_STRIP1-TB_STRIP1_TAB7'.
ENDIF.
ENDIF.
could u look into it.
‎2007 May 08 4:31 PM
Hi
U need to insert a check for the value of the field of first screen, so in the PBO of the second one:
if tabstrip-activetab is initial.
case field.
when .... tabstrip-activetab = <ok-code for tab1>.
when .... tabstrip-activetab = <ok-code for tab2>.
endcase.
endif.Max
‎2007 May 08 4:33 PM