Skip to Content

Catch event after sap.ui.table.Table filtering

Dec 23, 2016 at 12:35 AM


avatar image

Hi community!

I have one parent view, and 4 child views which are called in the parent view dynamically.

In each of the 4 views I have a table with editable cells, and in the parent view I have a checkbox which helps to filter the current sub-view table based on some filtering condition.

The problem is the following:

The table has been previously filtered and at that moment the first displayed record is not the first record from the model => the user changes a value in some cell => clicks the checkbox for filter => the first record of the model becomes the first record in the table BUT it gets the same value as the user just inserted in the cell PLUS the actual modified record with the changed cell keeps the modified value. So I end up with 2 records that for that column have the same value, and instead I should have the original value from the model for the new record in the table since it was never changed by the user.

Here are some images to better understand the problem:

Any ideas how can I catch the event after the filtering? Because when the filter is done I can see my table still containing only 1 row and all of a sudden I get 2 rows but can't catch it anywhere!



img.png (88.4 kB)
img2.png (88.7 kB)
10 |10000 characters needed characters left characters exceeded
Former Member

This is very strange. Can you force update your model after you apply the filter on select of the checkbox? Like this: model.refresh(true);

* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sashko Janev Dec 24, 2016 at 12:41 PM

I forgot to update the model, you were right!

Thanks a lot!

10 |10000 characters needed characters left characters exceeded