cancel
Showing results for 
Search instead for 
Did you mean: 

How to get row count in sap.ui.table after filtering?

former_member185620
Participant
0 Kudos
3,408

Hi Guys,

I want to get row count after filtering in sapui table.

How can I do that?

https://fiddle.jshell.net/jgj2wvkj/99/

Example : 

I'm filtering first name for "Kenya".

How to do get result length. (This example : 1)

Best Regards,

Burak Oral

View Entire Topic
thamizharasan
Advisor
Advisor
0 Kudos

Hi Oral,

After filtering just use  oTable.getItems().length to get the number of rows in the table.

oTable - is nothing but a reference to your table for example this.getView().byId('tableId')

Regards,

ThamizharasaN.

former_member185620
Participant
0 Kudos

Thanks ThamizharasaN.

Is there a event related after filtering?

I will change value some controls after filtering.

Best Regards,

Burak Oral.

thamizharasan
Advisor
Advisor
0 Kudos

Hi Oral,

There is a event called "filter" which is triggered when the table is filtered.

Regards,

ThamizharasaN.