cancel
Showing results for 
Search instead for 
Did you mean: 

how to add data in the model node

Former Member
0 Kudos

hello,

In my test,there is a mode node.Its structure is as follows:

A -


model node,parent node

B----


model node,child node

C----


model node,child node

now, I want to create several A elements.In each A element,there are several C element in it.I don't know how to make it. Would you please help me?Thank you!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Daniel,

Have you tried createAndAddElement on the nodes.

Ex: wdContext.nodeA().createAndAddElement or

wdContext.nodeA().createAndAdd<Element>Element

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Daniel,

Please follow as follows:

A a= new A(); //Assuming that it is strctr in R/3

B a= new B(); //Assuming that it is strctr in R/3

C a= new C(); //Assuming that it is strctr in R/3

Add to a to model object

now add any number of bs to that model object

For each b you can add any number of cs.

Former Member
0 Kudos

Thank you for answering my question.But the node A,B,C are in web dynpro Context.