on 01-08-2008 2:30 PM
Hello,
I have these context nodes:
RequestFindPerson
---ResponseFindPerson
------returnFindPerson
----
----
LocatedPerson
---name
---firstName
ReturnFindPerson and LocatedPerson are of the same data type. I'm able to copy several elements from returnFindPerson to LocatedPerson. But how can I copy the whole collection from returnFindPerson to LocatedPerson? I tried this way:
After I have execute the RequestFindPerson:
wdThis.wdGetContext().currentRequestFindPersonElement().modelObject().execute();
I tried:
Collection requestFindPersons = wdThis.wdGetContext().nodeRequestFindPerson().getModelCollection();
wdThis.wdGetContext().nodeLocatedPersons().bind(requestFindPersons);
But the Collection is always null.
What's the right way to copy the wohle collection as the case may be all elements.
Regards,
Armin
Hi,
Use WDCopyService.copyCorresponding(Object source, Object target)
http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/WDCopyService.html
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.