cancel
Showing results for 
Search instead for 
Did you mean: 

Search for a leaf in web dynpro abap - TREE

Former Member
0 Kudos

Hi experts,

following situation:

I have a view, with an inputfield (search param) with a search button and a tree with subnodes and leafs.

In the inputfield I want to type in a leafname and then click on the search button to find the first occurence of the search param/pattern and set the lead selection on this leaf/element.

How can I realize that ?

Any hints would be appreciated...

Thanks in advance and best regards

hhermann

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Ok I found a solution...

I found the leaf, and I can set the lead selection on the correct node, sub_node and the found leaf.

BUT, how can I expand the node and sub_node to make the leaf visible ? Any ideas ?

Thanks in advance and best regards

hhermann

Former Member
0 Kudos

Hi

I did a similar thing but I had table with treebykey table column.

You can try binding the Expanded property of node to a context attribute.

When User clicks on Search, this property can be set to abap_true.

That will cause the node to expand.

Thanks

Answers (0)