Skip to Content
0
Former Member
May 11, 2007 at 06:00 PM

Remove node elements

74 Views

Hi all,

I'm trying to remove some items from a context node.

Pretty new with webdynpro, so all suggestions are welcome.

//Reset table

IWDNode node = wdContext.currentContextElement().node().getChildNode("Projects", 0);

wdContext.currentContextElement().setTest("Size: "+node.size());

node.moveFirst();

for(int i=0; i < node.size(); i++){

wdContext.currentContextElement().setTest("Success: "+node.removeElement(wdContext.currentContextElement()));

node.moveNext();

}

This code will not work, I don't know why, but removeElement returns false.

Regards,

Adri