on 12-21-2009 10:05 AM
Hi,
I would like to open a View in new browser window. The navigation should be started from an aktion. The view, I want to show, and view, froma the navigation should be started, are parts the same WD Component. How can I implement tje Navigation?
Regards Bogdan
depending on the usage there can be number of ways to achieve this-
if view is launched like a pop up and it is required to return some value to calling window then you can use following code on the action -
call view propose names
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 lr_view_controller TYPE REF TO if_wd_view_controller.
DATA lv_text TYPE string.
lv_text = wd_assist->if_wd_component_assistance~get_text( '008' ).
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window(
window_name = 'W_PROPOSE_NAME' "your window name which needs to be called
title = lv_text
close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
close_button = abap_true
button_kind = if_wd_window=>co_buttons_okcancel
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_ok
).
CALL METHOD lo_window->set_window_size
EXPORTING
width = '350'
height = '50'.
lr_view_controller = wd_this->wd_get_api( ).
CALL METHOD lo_window->subscribe_to_button_event
EXPORTING
button = if_wd_window=>co_button_ok
action_name = 'ADD_PREFIX'
action_view = lr_view_controller.
lo_window->open( ).
2) If you are launching a new webdynpro application then try exploring LaunchPad...
Hope this helps
regards
manas dua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you want to open in seperate browser window :
Set Application name
lv_application_name = 'ZRM_ADM_CV_TOOL_APP' .
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = lv_application_name"pass you wd application name
IMPORTING
out_absolute_url = lv_out_absolute_url.
CALL METHOD l_window_manager->create_external_window
EXPORTING
url = lv_out_absolute_url
RECEIVING
window = l_window.
IF l_window IS NOT INITIAL.
l_window->open( ).
endif.
so this will open in diff browser window.
Priya
Hi,
When opened in external window, you may not have the data at all..
Usually the data is passed to the window handlerdefault event parameters inorder to use the data of the source application
Or
You can use the component controller methods of the first application that can be accessed in teh 2nd one.
Try to test both of them.
Regards,
Lekha.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.