on 05-12-2014 6:46 AM
Hi Guru's,
I have a requirement in webdynpro, that i need to display the new browser window on click of the right click menu item in the webdynpro application.
Please find the attached screen shot.
I found some of the scn links which didn't my purpose. please help me if anybody has some idea.
Thanks,
kasi.
Hi,
Check this wiki to create a context menu on right click: How to create static context menu in Webdynpro ABAP - ABAP Development - SCN Wiki
And in onAction of menu item, call the other web dynpro application.
Try the below code:
data lv_url type string.
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'ZWD_COMP' " Your 2nd component which you want to open in new window
IMPORTING
out_absolute_url = lv_url.
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.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_external_window(
url = lv_url ).
lo_window->open( ).
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.
Hi,
Yes, You can. jus pass the url which you want to call to the create_external_window( ) method.
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.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_external_window(
url = 'http://www.google.com' ).
lo_window->open( ).
Regards,
Kiran
Hi Rama,
I have Actived the View and whole component and tried to executed but it is not displaying. i have another post Thomas Jung is suggesting that static menu was blocked by SAP.
please refer below thread.
Even i tried in dynamic way the menu item is not appearing.
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.