Skip to Content
0
Former Member
Jan 08, 2008 at 02:30 PM

Copy Collection of an Conext Node to an other

19 Views

Hello,

I have these context nodes:

RequestFindPerson

---ResponseFindPerson

------returnFindPerson

----


name

----


firstName

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