Skip to Content
author's profile photo Former Member
Former Member

Hiding a Tab in Tabstrip


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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 05, 2014 at 05:06 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2014 at 04:24 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.