on 05-22-2014 10:45 AM
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
Hi, Kindly refer below link. http://scn.sap.com/docs/DOC-54047
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.