Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic context: recursion node

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

Not what you were looking for? View more on this topic or Ask a question