on 01-06-2010 11:53 AM
Dear all,
I hav created webdynpro application using abap .
In my application 2 window has created . First window is main window(Default window) and second window name is window2.
In that main window im created one button name is button1 and second window have 2nd button name is button2.
If i click button1 in that main window(browser) it will go to button2 in the second window in seprate browser .
if possible or not...
Kindly give solution
Thanks
Hello Sankavi,
Is it the windows or the views that you are talking about. Even if it is windows yes it is possible.
Cheers,
Sai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Already you have created two views and two windows right?
And u have created only one web dynpro application right?
just create second web dynpro application specifying the interface view as ur second view name
and plug name as default and save it.
in the same screen in the Administration Data you will find a url, copy that url and use the code in first view button
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( ).
CALL METHOD lo_window_manager->create_external_window
EXPORTING
url = 'http://Kaar-se.kach.com:80/sap/bc/webdynpro/sap/zar_second' "just type your URL here what u have get from second web dynpro application.
RECEIVING
window = lo_window.
lo_window->open( ).
Regards
Arun.P
hi,
If i am not wrong, then you want that on the click of button 1 in Main window(Window 1) , you want to open new window(window2).
For this use this code for our reference :
Data: context_node type ref to if_wd_context_node.
data: lr_popup type ref to if_wd_window,
lr_view_controller type ref to if_wd_view_controller.
data: lr_api_comp_controller type ref to if_wd_component,
lr_window_manager type ref to if_wd_window_manager.
lr_api_comp_controller = wd_comp_controller->wd_get_api( ).
lr_window_manager = lr_api_comp_controller->get_window_manager( ).
lr_popup = lr_window_manager->create_window(
MODAL = ABAP_TRUE
window_name = 'WND_POPUP' "Name of the second window
TITLE = 'Please enter all information'
CLOSE_BUTTON = ABAP_TRUE
BUTTON_KIND = if_wd_window=>CO_BUTTONS_YESNO
MESSAGE_TYPE = if_wd_window=>co_msg_type_error
CLOSE_IN_ANY_CASE = ABAP_TRUE
*MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
).
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 | |
7 | |
7 | |
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.