Skip to Content
0
Former Member
Apr 21, 2009 at 08:23 PM

How do you get the child node of a selected node in TreeByNestingTablColum?

132 Views

Hello,

I have a call to getTreeSelection() to get the current selected node in a TreeByNestingTableColumn table.

I now want to check if the current IWDNodeElement I just retrieved has another node as its child or is it a leaf?

For retrieving the current selected element in the tree I can do this:

IPrivate(n).I(n)Element selectedElem = wdContext.node(n).getTreeSelection();

Now this only retireves one element into selectedElem.

I cannot use currentChild(n)Element because that returns the lead select element, and in a TreeByNestingTableColumn this is not a unique value depending on where you are in the tree structure.

So my question is, how can I retrieve the current selected element in the tree and its child? I dont need all its children, just the first child is enough to get the info I need.

Please help.

Regards

Marshall.