on 06-23-2014 10:26 AM
Hi Gurus,
I just want perform window to window navigation in the same component.
For Example:
I have two windows namely Main1 and Main2(Popup).
Main1 is the Default window and V1 is Default View,
Now i have embedded 3 view's (V1, V2, V3) in Main1 Window.
and now i am in Main2 Window(Popup) with View4(V4).
Now i want to navigate Main2 window(Popup) to V2 view of Main1 Window.
How to do it??
I have tried a lot, but i cant find the result.
Thanks,
Pradeep.G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pradeep,
I assume your requirement is to open the pop up window from another window ?
In your case, open Main2 window as a pop up when clicking a button in main 1 ..
* Create the popup window
wd_this->lo_window = wd_this->lo_window_manager->create_window(
window_name = 'MAIN2'
button_kind = if_wd_window=>co_buttons_okcancel
message_type = if_wd_window=>co_msg_type_none
message_display_mode = if_wd_window=>co_msg_display_mode_none
).
lv_string = wd_assist->if_wd_component_assistance~get_text( key = '015').
CALL METHOD wd_this->lo_window->subscribe_to_button_event
EXPORTING
button = if_wd_window=>co_button_ok
button_text = lv_string
action_name = 'Method name on click of OK'
action_view = lo_view_controller
is_default_button = abap_true.
* Open the popup window
wd_this->lo_window->open( ).
Regards,
Tashi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pradeep,
i think you can control the visibility of your view container.
1) The initial window will be automatically reinstated when your pop window processing is over(buttons on the popup ).
2) you need to write a logic (depending on your requirement) to make the irrelevant views invisible by binding with a wdy_boolean attribute.
Regards,
Tashi
Hi Pradeep,
You can achieve your requirement as below
- Let us say you have OK button in popup window and subscribed to an event OK in view V1 of main1 window
- While opening popup window, you store the reference of popup window to view attribute GO_POPUP_WINDOW
- Create an outbound plug TO_V3 in view V1
- Create an inbound plug FROM_V1 in view V3
- Now, go to window MAIN1 & create a navigation link TO_V3 ------> FROM_V1
- On press of OK button of popup window ( write the below logic inside event OK of view V1 )
- Close the popup window
wd_this->go_popup_window->close( )
- Fire the outbound plug TO_V3 as below
wd_this->fire_to_v3_plg( ).
Hope this helps you.
Regards,
Rama
Hi Pradeep,
First thing is You cannot create navigation links across windows.
But here I see your requirement as you want to navigate to V2 of Main1.
You can use inbound & Outbound plugs for your requirement.
to know more about inbound & outbound plugs you can see this link.
http://www.saptechnical.com/Tutorials/WebDynproABAP/views/navigation.htm.
Regards
Bikas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.