on 09-18-2007 9:03 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.