on 12-05-2014 4:16 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.