on 11-18-2005 3:44 PM
Hi, i have a view with it's elements mapped to a model node mapped to an adaptive RFC that retrieves the data to be shown. I also have a second RFC that will store the data from the view.
The problem is that the UI components are already mapped to the first model node and i need them to be mapped also to the <i>updater RFC</i>. Is there a way to copy the data from the model node to the second RFC?
Thanks in advance
Hi Nicolas,
for this purpose you can utilize the <b>WDCopyService-API</b> which is there for copying node element lists from one model node to another.
Regards, Bertram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
My requirement is also the same...2 models need to be mapped to same controller node.... The way I approached it is creating 1 more value noce in the controller and copying the values from first node to this second node and then mapping the second node to the second model. Ofcource this is not avery good way as u will have to create n number of nodes if u have n number of models utilizing the same node.
I looked into the Template Relate Context attributes but they are for mapping between the nodes of the controller and not between controller and model.
Nicholas can u pls highlight more on the wdCopyService API u listed. Can it prevent creating additional dummy nodes in the controller ? which package has this API ?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm sorry but i didn't use the API ever. I'm a Web Dynpro newbie.
I mapped the models to the component controller context and then from the controller context to the view context. This way i could apply the Relate Context Template to copy attributes from one model node to the other.
As you can see, in my case there was no need to create an intermediate value node in the view controller's context.
Greetings
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.