Skip to Content

Dynamically move a tab to a new position

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 11, 2009 at 07:16 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 14, 2009 at 06:39 AM

    Hi,

    Any updates ? Have you found the solution ?

    Add comment
    10|10000 characters needed characters exceeded