cancel
Showing results for 
Search instead for 
Did you mean: 

How to get parent node of element in tabletree

Former Member
0 Kudos

Hi,

I have table with one colum as Master Column to display the tree structure. I have 3 levels in the tree structure. I want to get the parent node(if it has) id when I select the element.

Please let me know

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

IWDNodeElement selectedElement = ...;
IWDNodeElement parent = selectedElement.node().getParentElement();

Armin

Former Member
0 Kudos

Hi,

Test

ID

Name

TestChild(Recursive)

wdContext.nodeTest().nodeTestChild(0).getParentElement();

Regards

Ayyapparaj

Former Member
0 Kudos

Yes, I got it. Thanks for your info.

Former Member
0 Kudos

Hi,

You can get the parent info using

wdContext.nodeChild().getNodeInfo().getParent();

Former Member
0 Kudos

Hi Sudhir,

I am getting node info but I need the name of the parent node. I have two attributes(id and name) in the node. I want to get the parent node name for the selected eleemnt.

Thanks