05-24-2005 2:44 PM
Hi,
I'm using a Tabstrip for a report selection this works fine. Now I would like to make a tab invisible depending on an entry of an other entry field on the screen (this field is not on any tab)
Any hints ?
Message was edited by: Olaf Bethke
05-24-2005 3:34 PM
Sure, check this sample code......
report zrich_0001
no standard page heading.
selection-screen begin of screen 101 as subscreen.
selection-screen begin of block b1 with frame title text-001.
parameters: P_rad1 radiobutton group grp1 default 'X'
user-command check,
p_rad2 radiobutton group grp1.
selection-screen end of block b1.
selection-screen end of screen 101.
selection-screen begin of screen 102 as subscreen.
selection-screen begin of block b2 with frame title text-002.
parameters: p_char1 type c.
selection-screen end of block b2.
selection-screen end of screen 102.
selection-screen begin of screen 103 as subscreen.
selection-screen begin of block b3 with frame title text-003.
parameters: p_char2 type c.
selection-screen end of block b3.
selection-screen end of screen 103.
selection-screen begin of tabbed block one for 20 lines.
selection-screen tab (15) name1 user-command ucomm1
default screen 101.
selection-screen tab (17) name2 user-command ucomm2
default screen 102.
selection-screen tab (17) name3 user-command ucomm3
default screen 103.
selection-screen end of block one.
initialization.
name1 = 'Tab 1'.
name2 = 'Tab 2'.
name3 = 'Tab 3'.
at selection-screen output.
loop at screen.
if p_rad2 = 'X'.
if screen-name = 'NAME3'.
screen-invisible = '1'.
modify screen.
endif.
endif.
endloop.
start-of-selection.
Regards,
Rich Heilman
05-24-2005 3:34 PM
Sure, check this sample code......
report zrich_0001
no standard page heading.
selection-screen begin of screen 101 as subscreen.
selection-screen begin of block b1 with frame title text-001.
parameters: P_rad1 radiobutton group grp1 default 'X'
user-command check,
p_rad2 radiobutton group grp1.
selection-screen end of block b1.
selection-screen end of screen 101.
selection-screen begin of screen 102 as subscreen.
selection-screen begin of block b2 with frame title text-002.
parameters: p_char1 type c.
selection-screen end of block b2.
selection-screen end of screen 102.
selection-screen begin of screen 103 as subscreen.
selection-screen begin of block b3 with frame title text-003.
parameters: p_char2 type c.
selection-screen end of block b3.
selection-screen end of screen 103.
selection-screen begin of tabbed block one for 20 lines.
selection-screen tab (15) name1 user-command ucomm1
default screen 101.
selection-screen tab (17) name2 user-command ucomm2
default screen 102.
selection-screen tab (17) name3 user-command ucomm3
default screen 103.
selection-screen end of block one.
initialization.
name1 = 'Tab 1'.
name2 = 'Tab 2'.
name3 = 'Tab 3'.
at selection-screen output.
loop at screen.
if p_rad2 = 'X'.
if screen-name = 'NAME3'.
screen-invisible = '1'.
modify screen.
endif.
endif.
endloop.
start-of-selection.
Regards,
Rich Heilman
05-24-2005 4:00 PM
Hi Rich,
thank you very much that's the point!
I would like to give points but I can't find the Icon for this
Message was edited by: Olaf Bethke
05-24-2005 4:09 PM
Hi Olaf,
Go back to your first post and click on the pencil icon (its just next to reply).
When you are in edit mode you will see a check box "Mark this post as a question". (be default its checked, you must have unchecked it when you first created the post)
Select this check box and hit save.
You can then award points (the little stars next to each persons post).
Brad
05-24-2005 4:44 PM
You didn't mark it as a question. First mark it as a question and then you can reward.