cancel
Showing results for 
Search instead for 
Did you mean: 

Commmunication Between two Components

Former Member
0 Kudos

Hi ,

I am developing a project of having two components in it. I want to communicate each component with other one. Both components should be communicating with each other.

I am able to communicate from Component one to Component two . But ! unable to do the same from Component Two to Component one. It shows the following error.

Component ComponentOne: Cycle in component usage definitions: ComponentTwo

Regards,

Jyothi.

Accepted Solutions (0)

Answers (2)

Answers (2)

BeGanz
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hallo Jyothi,

Parent2Child-component-communication: apply interface method invocation (parent component with component usage relation to child component invokes interface controller method of child component --> IExternal-API)

Child2Parent-component-communication: apply interface eventing (child component exposes interface controller event, child component defines NO cyclic component usage dependency to parent component, parent component subscribes own event handler to event of child component's interface controller, child component fires interface controller event at runtime and can also pass object references as event parameters).

For data transfer across component borders apply interface-context-mapping

1) exernal context mapping: data context in parent component, child component externally maps its interface context to it.

2) interface context mapping: data context in child component, parent component maps own context to interface context of used child component.

Regards, Bertram

Former Member
0 Kudos

Hi,

Please go through this thread

you may get some idea!

Regards,

ramesh

Former Member
0 Kudos

Hi

The Component usage can be done like:

A specific component usage is created and the parent component accesses the functionality of the child component via its Component interface controller and this can be done by external context mapping.

Rashmi.

Former Member
0 Kudos

Hi,

As you said, a parent component can access the functionality of the child component, Can a child access the functionality of the parent component ?

If so , how ?

thanks

Jyothi.

Former Member
0 Kudos

Hi,

Two components can communicate with each other using the Component Interface-> Interface controller.

It acts as an interface between two components.

With the help of this the 2 componenets exchange information

Regrads

Padma N