cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding a Tab in Tabstrip

Former Member
0 Kudos


Hi,

I have a requirement to hide UI element Tabstrip tab.

I tried with the class CL_WD_TABSTRIP methods but couldn't suceeded.

Kindly help.

Thanks & Regards

Brijo.

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Brijo,

If its statically designed, go to the respective tab and set the visibility property to NONE.

If you want it to hide using code:

write the below code in wddomodifyview( ).


if first_time = abap_true.

     data lo_tabstrip type ref to cl_wd_tabstrip.

     data lo_tab type ref to cl_wd_tab.

     lo_tabstrip ?=          view->get_element( 'TABSTRIP_NAME').

    

     if lo_tabstrip is bound.

     lo_tab = lo_tabstrip->get_tab( 'NAME_OF_TAB' ).

      if lo_tab is bound.

          lo_tab->set_visible( '01')." invisible

      endif.

     endif.

endif.

change the tabstrip name and name of tab as per your requirement.

Hope this helps you.

Regards,

Rama

Former Member
0 Kudos

Hi Rama,

Thanks for your help.

Regards

Brijo.

ramakrishnappa
Active Contributor
0 Kudos

Hi Brijo,

Is your issue solved? if so, please close the thread by marking it as answered.

Regards,

Rama

Answers (1)

Answers (1)

rajeshkothamasu
Active Participant
0 Kudos

Hi,

If you want to hide any UI element, you have to use the visible property of the UI element and see the tab strip property, if it is binded then use the binded context attribute for writing the code.

are you hiding the standard component tab strip.

Hope it will help you.

Regards,
Rajesh K