on 10-11-2007 1:13 PM
Hello,
I want to create the following in my context by code:
-ParentNode
|--ChildRecursionNode
|--nameAttr
|--valueAttr
this is what I tried:
IWDNodeInfo nodeInfo= wdContext.getNodeInfo().addChild
( "ParentNode", null, true, true, false, false, false, true, null, null, null);
nodeInfo.addAttribute("nameAttr", "com.sap.dictionary.string");
nodeInfo.addAttribute("valueAttr", "com.sap.dictionary.string");
// this line throws an exception:
root.getNodeInfo().addRecursiveChild("ChildRecursionNode", nodeInfo);
This code throws a ContextConfigurationException:
com.sap.tc.webdynpro.progmodel.context.ContextConfigurationException: RecursiveNodeInfo(testView.ChildRecursionNode): invalid recursive parent path ParentNode
I changed my code in:
IWDNodeInfo nodeInfo= wdContext.getNodeInfo().addChild
( "ParentNode", null, true, true, false, false, false, true, null, null, null);
nodeInfo.addAttribute("nameAttr", "com.sap.dictionary.string");
nodeInfo.addAttribute("valueAttr", "com.sap.dictionary.string");
nodeInfo.addRecursiveChild("ChildNode", nodeInfo);
Running this code returns in an endless loop ...
Please help me...
Thanks,
Joachim
Solution found:
IWDNodeInfo nodeInfo= root.getNodeInfo().addChild( "ParentNode", null, true, false, true, false, false, true, null, null, null);
nodeInfo.addAttribute("nameAttr", "com.sap.dictionary.string");
nodeInfo.addAttribute("valueAttr", "com.sap.dictionary.string");
root.getNodeInfo().addRecursiveChild("ChildRecursionNode", nodeInfo);
the parentNode has to be singleton and cardinality 0...n.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.