on 12-04-2012 11:24 AM
Hello friends,
I have add link to action in my web dynpro but when i run it and click on the link my current screen messages is refresh automatically.
but i don't want to refresh it my messages.
i have written following code .
METHOD onactionlink_to_new_url .
DATA: lo_window_manager TYPE REF TO if_wd_window_manager,
lo_api_component TYPE REF TO if_wd_component,
lo_window TYPE REF TO if_wd_window,
lv_url TYPE string,
lv_url1 TYPE string.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lv_url = 'http://google.com
CALL METHOD lo_window_manager->create_external_window
EXPORTING
url = lv_url
RECEIVING
window = lo_window.
lo_window->open( ).
ENDMETHOD.
kindly advice.
Thanks,
abhilash
Hi,
When ever you click any action in wed dynpro abap, the WDDOMODIFYVIEW method will be called followed by WDDOAFTERACTION method.
during this the message area will be cleared. So you create a global message manager and call
get_messages method of if_wd_message_manager in the WDDOAFERTACTION method and redisplay
the messages.
Hope this helps u,.
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you want to calll url in extral window why you need messages can you explain business logic
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 | |
10 | |
7 | |
6 | |
6 | |
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.