cancel
Showing results for 
Search instead for 
Did you mean: 

search entry in table and scroll to corresponding row

Former Member
0 Kudos

Hi community,

I have some textfield and a table. When an order number is inserted in that text filed, the corresponding table entry should be selected.

I tried to loop through all rows and compare values but that approach is limited to the visible rows. That is if 10 rows are visible but correspondign entry is in line 15, I will get no result.

I would like to bring that row to the visible area/rows of table and put focus/selection on it.

What's a good way to do so? anybody's got some best practive for me?

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

which table?

Former Member
0 Kudos

Hi Maksim, it is a sap.ui.table.Table

Greetings, Marco

former_member182372
Active Contributor
0 Kudos

Marco, sap.ui.table.Table has firstVisibleRow property

type last name (like mann or zar) and hit enter

http://jsbin.com/kohayoweru/1/edit?html,output

Former Member
0 Kudos

Hi Maksim, thx for your reply. It solved my problem! It was the context thing that I did not know!

Answers (0)