cancel
Showing results for 
Search instead for 
Did you mean: 

Component to Componet

Former Member
0 Kudos

Hi,

I am trying communicate from Parent comp to child comp.

I would like to know few things here:

I created Node for the ParentComp,

In parent i want to use childcomp as a used comp, I declared in Parentcomp , child comp as used comp , my question is , do i need to create a context for the ChildCompoentController or ChildCompInterfaceController ?

If I need to create a context in childComp is it same as in ParentComp (I mean structure, naming,data types..)

Please clarify this.

Krish

Accepted Solutions (1)

Accepted Solutions (1)

lajitha_menon
Contributor
0 Kudos

Hi there,

The component interface controller context will be visible in the child node. so you need to create the context there. You can copy the same context to the comp controller and map it , and write the methods in the comp controller if you like, and in the interface controller all you do is to call the comp controller method.

In the child node, you can have diffrerent contexts, there is no restriction(It does not exactly work like inheritance in java classes if thats what you mean). Everything is controlled by context mapping. Usually, we create the same context and map it to interface controller, because its easy and there is uniformity. But your child node will have other contexts as well.

Hope that helps

LM

Answers (2)

Answers (2)

Former Member
0 Kudos
BeGanz
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Krish,

see my tutorials <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/19e6e990-0201-0010-eca6-a62e342eaad3">serverside Eventing Tutorial</a> and <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/bd0e0401-0801-0010-aaab-d0e1742da383">designing Component-Based Web Dynpro Applications (38)</a>.

Regards, Bertram