on 12-01-2009 11:12 AM
Hi SDN,
I am consuming a WSDL and i am getting model node in the context. Now I am creating a Value Node with the same strucute for the same. Please let me know if the elements including the child node can be copied from source to target node?
If so please explain how to do it?
Regards,
Ganesh N
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ganesh,
WDCopyService.copyElements(IWDNode source ,IWDNode target );
Using the above line will direcly copy all elements fromsource to target but it needs to adhere to 1 rule-->
Same Node structure with same attribute names and so should be the properties of the Node and the attribute within. I mean same cardinality and selction of node and same attribute datatypes.
Regards,
Tushar Sinha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Once data is available in model node (after executing the model) Use following code
WDCopyService.copyElements(IWDNode source ,IWDNode target );
Best Regards
Satish Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In most cases, I prefer Context-Mapping. Are you sure you have to use a copy instead of a link/delegate?
If so, look for WDCopyService (http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/WDCopyService.html)
Its a reflection based Copy-Service that assumes that elements of the same type and with the same name are supposed to have equal values, thus it automatically copies all elements from source to dest in one line of code.
Jan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.