on 05-26-2009 2:49 PM
Hi all,
I have a button and I would like that clicking on it the Action associated make start an URL calling another Web Dynpro Application.
Any suggest for me?
Thanks
GN
Hi,
In the button handler, write the code -
** DATA DECLARATIONS
DATA:
l_cmp_api TYPE REF TO if_wd_component, " Reference for Component
l_window_manager TYPE REF TO if_wd_window_manager, " Reference for window manager
l_popup TYPE REF TO if_wd_window, " Reference for window
lv_url TYPE string. " Url of the application
* Generate the url for the component
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'ZWDA_OTHER' "Application name
IMPORTING
out_absolute_url = lv_url.
** GET WINDOW MANAGER
l_cmp_api = wd_comp_controller->wd_get_api( ).
IF l_cmp_api IS BOUND.
l_window_manager = l_cmp_api->get_window_manager( ).
IF l_window_manager IS BOUND.
l_popup = l_window_manager->create_external_window( url = lv_url ).
l_popup->open( ).
ENDIF. " IF l_window_manager IS BOUND
ENDIF. " IF l_cmp_api IS BOUND.
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.