on 09-10-2008 8:27 AM
Hi,
i have a parent comp A, and i reuse a component B.
Comp B has a interface window outbound plug.
i have embedded the interface view of Comp B in a view container UI element also i have a local view C of Comp A.
in the window of Comp A , i have made the navigation link for interface view and local View.
i am not sure how to fire out that interface outbound plug...
any help will b appreciated..
Thanks,
Arjun.G
on which event you want to fire the outbound plug of comp B. is the event exists in Comp B or Comp A.
if the event is with in the comp B. you can code it in comp B itself
let OUT be your outbound plug of the window ZTEST12
http://flickr.com/photos/28584284@N04/2844822207
add the window controller to the view
http://www.flickr.com/photos/28584284@N04/2845660584/
fire the out bound plug of the window from View of Comp B ( ZTEST12 is the window name )
data: lr_window type ref to ig_ztest12.
lr_window =
wd_this->Get_Ztest12_Ctr( ).
lr_window->fire_out_plg( ).
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in that case,
create an event in the component controller of comp B
create a method in the view of Comp B and subscribe to the event and inside the method fire the plug as mentioned in my previous post
fire the event from Comp A when ever you want.
Abhi
Create an application in COMP A with interface window.
Now you want to call interface view from view of COMP A then use this code to call the Interface view.
** Data Declarations
DATA:
lr_ref TYPE REF TO ig_<window_name_compA>,
str TYPE string.
*Get the URL of the Application
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = '<Interface_application name>'
IMPORTING
out_absolute_url = str.
*Reference of Window
lr_ref = wd_this->get_<window_name_compA>_ctr( ).
* Fire Exit Plug
lr_ref->fire_<plug_name>_plg(
url = str
).
Thanks
Suman
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.