cancel
Showing results for 
Search instead for 
Did you mean: 

How to transfer data from one component to other Component

Former Member
0 Kudos

Hi Guys,

I have one doubt like how to pass value from one component to other. In my application i have two components. I want the value given in the inputfield of the component should be displayed in the scecond component. Can anybody clear information about that?

Thanks In Advance

Regards

Ravi

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ravikumar,

take the context attribte in interface controller (what attribute u want to pass). in 2nd component ,use 1st component as used component. bind 2nd dc's component controller to 1st dc's interface controller.

U can use this doc for better understanding

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8d7cd90-0201-0010-4a8c-dd22fa16ca0a">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8d7cd90-0201-0010-4a8c-dd22fa16ca0a</a>

regards

Sumit

Former Member
0 Kudos

Hi Ravikumar,

Every component has its interface controller.

Assume cont1 and cont2

cont1 has its interface controlloer interface1 and cont2 has its interface controller interface2.

Define a value attribute va_temp in interface1> map this to cont1> map this to view1 of cont1 and bind it to the UI element.

In cont2 > Used webdynpro Components> add the interface1

Now map the same va_temp to cont2--> map this to view2 of comp2

Now you can access va_temp of comp1 in comp2.

Warm Regards,

Murtuza

Former Member
0 Kudos