cancel
Showing results for 
Search instead for 
Did you mean: 

searching a field in tree by key table column node in web dynpro abap

Former Member
0 Kudos

Hi,

I have an issue that i have to implement a search functionality in a tree by key table column i.e. a tree by key table column is loaded initially with only the root node and then i want have a search functionality to be able to search an employee number that would reside anywhere in that node. If found one it just dynamically opens up the node whereever that employee number is located in the tree.

Please reply asap.

Accepted Solutions (0)

Answers (1)

Answers (1)

amy_king
Active Contributor
0 Kudos

Hi Amber,

You would do this by setting the expanded property of all parent nodes to true. Let's say you have the following tree and the employee you want to display is 2.1.1.

  • 1
  • 2
    • 2.1
      • 2.1.1 
    • 2.2
  • 3

You would need to set the expanded properties of nodes 2 and 2.1 to true. Once the nodes are expanded, you can also set the Table's firstVisibleRow property to the index of the employee node so the Table will scroll to that position.

Cheers,

Amy

Former Member
0 Kudos

Thanks will try and revert..