cancel
Showing results for 
Search instead for 
Did you mean: 

Catch event after sap.ui.table.Table filtering

yanev
Participant
0 Kudos

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!

Thanks,

Sashko

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);

Accepted Solutions (1)

Accepted Solutions (1)

yanev
Participant
0 Kudos

I forgot to update the model, you were right!

Thanks a lot!

Answers (0)