on 03-18-2009 7:52 AM
Hi,
I need to pass values from view1 (WINDOW1) to view2(Window2). I have created an outbound plug in window1 with required parameters to pass and Inbound Plug in Window2. But I am not able to create a navigation link.
Pl help.
Thanks,
Hardik
Thanks Guys.. I think I got the answer.
Thanks
Hardik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
it is possible to pass the data from different windows. but all the views must bind to same Component controller. You can call these views in different windows.
Best Regards
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
I am glad to here that. Here is my scenario.
In same component, I have VIEW1 bound to WINDOW1(Main Window). On this VIEW1 I am showing Vendor Number (LFA1-LIFNR). There is a Detail BUTTON next to Vendor Number. Once use click this button (Under Event Handler), I need to pass Vendor Number as an Export Parameter to VIEW2. VIEW2 is bound to WINDOW2(Popup Window). In VIEW2 I will have an import parameter for Vendor Number.
Basically to achieve this I need to use Window Plugs, But I am not sure how to use them.
I will really appreciate the help.
Thanks
Hardik
hi,
Create a Window 1 with VIEW1.
i tried with plugs but not able to get it,
so what i have done now is
in the view 1 i have put a button and open the view of window 2 as popup.
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 = 'W_POPUP' "Name of the window created in step 2
TITLE = 'List Of Candidates'
CLOSE_BUTTON = ABAP_TRUE
BUTTON_KIND = if_wd_window=>CO_BUTTONS_CLOSE
MESSAGE_TYPE = if_wd_window=>co_msg_type_error
CLOSE_IN_ANY_CASE = ABAP_TRUE
*MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
).
Its working ok.
Best regards,
Rohit
Window plugs aren't used for creating popups. They are used for doing normal navigation. They allow you to navigation the main browser display area from one window/view combination to another. If you want a popup over your current window, then you should pass data using the suggested methods of context binding and/or controller attributes.
The popup window isn't a separate session. It is all running within one server session and even within the browser it is still one application. The popup window is just using HTML layers to simulate another window - but is really just one running session.
Hi Hardik
I think the best way to do this is create a context node/attribute as per requirement in view1, view2 and also in component controller.
Then Map that context node/attribute of view1 with component controller and also map context node/attribute of view2 with component controller.
Now when that required value is save in the context of view1 that will automatically transfer to component controller's context and from component controller to context of view2.
This way you will get the required value from view1 to view 2.
Vikrant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try using inbound and outbound plugs..
Ram.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can have only One window as main window, remaining windows can be used only as Popups.
you can not navigate fromone window to other with in a component.
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.