Skip to Content

sap.ui.table.Table filter event triggers before filtering values.

Hello everyone,

I'm using a sap.ui.table.Table and show a column's summation value in the table's footer. I have a requirement where the summation value should update after the table is filtered with the sum of visible rows only.

I'm using the sap.ui.table.Table's filter event and here's how I get my visible rows:

var vRowIndices = oEvent.getSource().getBinding("rows").aIndices
var vRows = []

My issue is the filter event executes my code before the table is filtered and aIndices returns the indices of rows that were visible before the current filter is applied.

My current solution is to use a timeout and delay the above code'd execution to after the filtering is done, otherwise I get the previous state of the rows (before applying the filter)

setTimeout(function() {
}, 100);

This solution works but isn't ideal, I'm looking for a better way to implement this.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers