cancel
Showing results for 
Search instead for 
Did you mean: 

Tree Nodes

Former Member
0 Kudos

Hi,

I have Tree Node UI Element with 5 Nodes.

Tree

|

|- Node 1

|- Node 2

|- Node 3

|- Node 4

|- Node 5

When I click on the page and the Tree UI shows up, I would like Node 3 to be expanded and not any other node.

Is there any way I could achieve the same.

Thank you.

NAC

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I guess you are talking about five elements of a node..

use

wdContext.node<nodename>().setLeadSelection(<the number of the node element in this case 2>);

after setting the expanded property to true ..

Regards

Bharathwaj

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi SAP Partner,

Set the property 'expanded' of the treeNodetype element to a boolean attribute. Set this attribute as false for all the nodes except for the third node.

Hope this helps,

Best Regards,

Nibu.

Former Member
0 Kudos

Hi,

You can try the following.

wdContext.NodeNode3().setTreeSelection(Node3Element);

where node3Element is of type Node3Element.

Regards, Anilkumar