cancel
Showing results for 
Search instead for 
Did you mean: 

to navigate using interface plugs

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

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

Former Member
0 Kudos

hi abhi,

My event is in Comp A,

for instance if i press a NEXT button in Comp A the navigation has to happen within the viewcontainer element of Comp A.

Thanks,

Arjun.G

abhimanyu_lagishetti7
Active Contributor
0 Kudos

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.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/801b45e3-65dd-2a10-539a-d2e8e81a...

Abhi

Former Member
0 Kudos

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