cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically move a tab to a new position

daniel_humberg
Contributor
0 Kudos

I have a tabstrip with 4 tabs.

Depending on some user settings or other variables, I would like to move one of the tabs to a new position.

I tried this in WDDOMODIFYVIEW, using the classes cl_wd_tabstrip and cl_wd_tab.

The only solution I found to move the tab is to remove the tab and to add it again at a new position afterwards.


lr_tab = lr_tabstrip->remove_tab( id = 'TAB4' ).
IF lr_tab IS BOUND.
  lr_tabstrip->add_tab( the_tab = lr_tab  position = 2 ).
ENDIF.

This code works, but isn't there a possibility to do it without REMOVE?

Furthermore, it seems that there is no easy solution to find out the position of a given tab, or can somebody tell me one?

Thx and regards,

D.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Any updates ? Have you found the solution ?

daniel_humberg
Contributor
0 Kudos

No, i did not find any other solution except for the one mentioned in the question

daniel_humberg
Contributor
0 Kudos

marked as answered because I can only have 10 open questions...