cancel
Showing results for 
Search instead for 
Did you mean: 

Data transfer between views in different components

Former Member
0 Kudos

Hi,

I was doing some small application in which I have to transfer data from one view in one component to another view in another component.

Say PrimaryComp has a view called PrimaryView in which 3 input fields are there for user to  enters details.

Primaryview has two buttons:

1)Add - If clicked, the data should be stored in a table which is in another component say SecondaryComp.

2)Next - If clicked, control should transfer from PrimaryView of PrimaryComp to SecondaryView of SecondaryComp. (I mean that view should come in PrimaryComp window).

What i did is

*Added SecondaryComp as a used component in PrimaryComp
*context mapping done between Interface controllers (SecondaryComp) to Component controller(PrimaryComp).

wirtten a code to create context element to hold the data and mapped it.

But something is wrong in the procedure I do. Controls transfers from one component to another (works fine) but data is not there in the table of SecondaryView.

Please clarify me.

P.S., I am new to WebDynpro Java. I tried it within the same view which works fine.


Best Regards,
Manoj

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, Kindly refer below link. http://scn.sap.com/docs/DOC-54047

Answers (1)

Answers (1)

former_member191044
Active Contributor
0 Kudos

Hello Manoj,

just create a context node in SecondaryComp and add this node to the interface. Then map the this node in your PrimaryComp and simply work on it. So if you add a record in the mapped node in PrimaryComp then this record is in SecondaryComp two. Maybe make some screenshots of your component interface and the mapping.

Regards

Tobias

Former Member
0 Kudos

Hi Hamdorf,

Thanks for the reply.

I did everything you told.

Created context in SecondaryComp, mapped it to interface controller of Seconday comp which in turn mapped with Component controller of PrimaryComp.

I could see the empty tables (which is in SecondaryView) if i click Next button.

Nothing else.

I will try to take screenshots and post it.

Regards,

Manoj

Former Member
0 Kudos

Dear Manoj,

I think following link will be helpful.

Thanks,

Patralekha

Former Member
0 Kudos

Got it. Did a little mistake in mapping. Everything works fine now.

Cheers,

Manoj

Former Member
0 Kudos

Great...:)

Former Member
0 Kudos

Hi Manoj.

Would you mind marking your post as answered?

Thank you.

Bernd