Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

tab invisible

Former Member
0 Likes
973

Can we make a tab inivisible based on condition?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
931

Hi

In PBO

Loop at screen

if screen-name = 'TAB'.

SCREEN-ACTIVE = 0

SCREEN-INVISIBLE = 1.

MODIFY SCREEN

ENDIF.

ENDLOOP

endloop

Regards

Ramchander Rao.K

Can we make a tab inivisible based on condition?

7 REPLIES 7
Read only

Former Member
0 Likes
932

Hi

In PBO

Loop at screen

if screen-name = 'TAB'.

SCREEN-ACTIVE = 0

SCREEN-INVISIBLE = 1.

MODIFY SCREEN

ENDIF.

ENDLOOP

endloop

Regards

Ramchander Rao.K

Read only

0 Likes
931

screen-name ?

tabname or function code of that tab..?

Read only

0 Likes
931

i wrote in pbo of main screen ..but still its not working..

Read only

0 Likes
931

You write the LOOP AT SCREEN routine in the screen that contains the Tab Control.

So if you have SCREEN 100 which contains TABCTL1 and TABCTL1 is where you want to hide the tab, then you'd write it in the SCREEN 100 PBO routine.

If on one of your tabs you have a Subscreen (say screen 200) that contains another tab control, you'd do the LOOP AT SCREEN in the SubScreen (200) PBO routine.

The name of the TAB will be something like TABCTL01_TAB3 if you used the wizard to create it.

Read only

Former Member
0 Likes
931

its NAME of the tab not function code.

Edited by: mrugesh phatak on Dec 5, 2008 12:20 PM

Read only

0 Likes
931

IN WHICH PBO SHOULD I WRITE?

as i have two tabstrips with 5 tabs on each one..

the filed i'm checking for condition is on normal screen

on which i should make the tab invsible from second tabstrip...

Read only

Former Member
0 Likes
931

Hi,

If <condition> is true.

loop at screen.

if screen-group1 = <group_name>.

screen-active = 0.

modify screen.

endif.

endloop.

endif.