Skip to Content

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

Updating Child Nodes

I am trying to update the attribute on a child node and cannot get past the first record.


ParentNode 0-N

-- ChildNode 1-1

-- ChildAttribute1

-- ParentAttribute1

-- ParentAttribute2

I need to loop through all Parent Nodes and update the ChhildAttribute1 with the value from ParentAttribute2

ParentNodeNode thisNode = Context.nodeParentNode();
int elementCount = thisNode.size();
for (int i = 0; i < elementCount; i) {

This does not work. It does not give me an error but does not populate the val;ues either...

Help .

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