cancel
Showing results for 
Search instead for 
Did you mean: 

Cancel tabstrip navigation

0 Kudos

I have a problem with navigation in my Web Dynpro.

I have a tabstrip in a view. When the user click on a tab, I check if any changes are made. Here I use get_changes( ). If there are any changes I show a popup (use create_popup_to_confirm( ) ) but the popup is shown on the new tab and I want is on the old one where the changes where make.

I have tried to place my code in WDDOBEFOREACTION but that do not solve my problem.

Can anyone tell my why ?

Regards,

Henriette

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

you can add an event to your tabstrip ( in the layout : add event onSelect ).

bind the selected tab to an attribute : say Tab.

in your method ( event handler) you've got 2 parameters ( old_tab and tab ) :

- you do your control

and then

IF continue = abap_true.

elem_layout_data->set_attribute(

EXPORTING

name = `TAB`

value = tab ).

ELSE.

elem_layout_data->set_attribute(

EXPORTING

name = `TAB`

value = old_tab ).

ENDIF.

there you are. I hope this resolves your problem.

Regards,

Mayaa

Answers (0)