cancel
Showing results for 
Search instead for 
Did you mean: 

Need help expanding a tree

Former Member
0 Kudos

I have the following Context node

SiteTree (0..n)

--> ChildNode (recursive SiteTree)

|--> Name (string)

|--> ID (string)

|--> Expanded (boolean)

The ChildNode's expanded property is set to the SiteTree.Expanded value.

I am calling an RFC to create a new record, then calling another BAPI to refresh this node list.

What I want to do is after rebuilding this node, I want to expand the tree to a specific SiteTreeElement based on it's ID. I have built the recursive function that locates the appropriate SiteTreeElement and I set Expanded to true for this element. However this does not expand the tree, it is fully collapsed.

Any help would be greatly appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Easiest solution is perhaps to just select the specific node using setTreeSelection(element). The Tree has a built-in functionality to always expand the path to the tree selection.

Armin

Former Member
0 Kudos

Perfect. Thank you.

Answers (0)