on 01-23-2013 4:29 PM
Hi
I have a webdynpro with a button that when i press it i want to open a NEW AND DIFFERENT window.
i wrote this code in th button's action
data: lo_window_manager type ref to if_wd_window_manager.
data: lo_api_component type ref to if_wd_component.
data: lo_window type ref to if_wd_window.
data: ld_url type string.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
ld_url = 'http://www.sapdev.co.uk'.
CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
EXPORTING
URL = ld_url "'http://www.sapdev.co.uk'
RECEIVING
WINDOW = lo_window.
lo_window->open( ).
but it opent a new windoe in the webdynpro window - what i mean is that after i executed the code above the new window opened over and insted of the webdynpro window while i wanted to be open in a new window/browser seesion.
Is there a way to do that ?
Thanks Ami
Hi Ami,
Your code is correct. I've pasted it as-is into a method of my own and it opens a separate, external window in both IE and Firefox.
The only thing I can think might be happening is the browser or server may be caching an old response. Try clearing your browser cache and also clearing the ICM server cache in the ICM Monitor:
SMICM > Goto > HTTP Plug-in > Server Cache > Invalidate Globally
If that doesn't resolve the issue, could you please post a screen shot of what you see when you open the new window?
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ami,
Use create_and_open_popup() method instead of CREATE_EXTERNAL_WINDOW() method.
Regards,
Mahidhar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.