cancel
Showing results for 
Search instead for 
Did you mean: 

component

Former Member
0 Kudos

hi,

Can anyone help me How one component will communicate with another component ?

Thanks in Avance,

Sowmya.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos
former_member201361
Active Contributor
0 Kudos

Hi,

Refer this links for componenetization.

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/8748] [original link is broken] [original link is broken] [original link is broken];

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/8881] [original link is broken] [original link is broken] [original link is broken];

Thanks and Regards

Former Member
0 Kudos

Hi Soumya,

ANS: One Compoenent communicates with other compoenet using interface controller and ineterface views.

Explanation:

The component interface consists of two visual parts and one programmatic part.

-->The interface controller is the programmatic interface that gives a parent component access to the

child componentu2019s functionality. The parent component can call methods in the childu2019s interface

controller, and these methods can react to events raised by the parent component.

-->The interface view is the standardized mechanism by which all view assemblies can be presented

through the generic Web Dynpro Framework. By means of the interface view, a componentu2019s visual

interface becomes a reusable unit, thus allowing you to embed it into a larger view set.

And the only parts of a Web Dynpro Component that are visible to the outside world, are the interface

controller and the interface view(s).

1. All Web Dynpro components have an Interface Controller.

2.A Web Dynpro Component can declare the use of another Web Dynpro Component. A specific

component usage is then created and the parent component accesses the functionality of the child

component via its component interface controller.

i.e .External access to a componentu2019s functionality is provided by interface controllers.

Hope ugot how we access compoenent with in other component.

Thanks n regards,

Archana

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

Go to Web Dynpro explorer -


> select used Web Dynpro Component -


> right click -


> add used component.

Then you will be able to use 2 or more components in a component.

If your requirement is to navigate from One Dc to Another right?

1.So in the Interface view of the child create an Outplug "" ToParentOut".

2.Create an Inplug "fromChildn" in Parent.

3.Create the navigation link.

Now create a button in child and in the onAction of this button write this code.

wdThis.wdGetChildInterfaceViewController().wdFirePlugToParentOut;

And dont foreget to add the Child component in used components of Parent.

Hope it is clear. For more references..

[;

[;

Regards,

Jithin