on 01-31-2006 10:47 AM
Hi,
I'm trying to use the WDCopyService zu copy a contextnode (0..n) to a modelnode (0..n).
WDCopyService.copySubtree( wdContext.nodeMyContext(), wdContext.nodeMyModel() )
All I get at runtime is this:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: nodes are incompatible
Both nodes are structure-binded to the structure of the imported model.
Cardinality, attributes and attribute-names are the same.
The contextnode is mapped to the interface-controller and there marked as input-parameter.
Copying this node within the context works. Copying to the model utterly fails.
Any ideas on this?
Thanks in advance.
Alf
Hi,
WDCOpySubTree requires both the nodes to have the same depth and same structure insdie . Or both of them similar in that way.Or they recursive.
In case they are of a single level, try copyCorresponding and check.
And are they value node or model nodes. In case if they are model nodes are they from the sameclass..
Can u give us the complete structure of both the nodes.
Regards
Bharathwaj
Regards
Bharathwaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.