cancel
Showing results for 
Search instead for 
Did you mean: 

sapui5 table - filter through binding rows not working on modifying filter value

05-13-2021 1:53 AM
SAPSeeker Participant
1650 views 1 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hi Experts,

Below is the code that works for first time but after modifying filter value and applying filtering again doesn't work. Is there something that I am missing ? Table used is sap.ui.table.Table

Working Code:

oFilter = new sap.ui.model.Filter(filterProperty, sap.ui.model.FilterOperator.EQ, filterValue1);

filtersArray.push(oFilter);

oTable.getBinding("rows").filter(filtersArray, sap.ui.model.FilterType.Application);

Not Working:

filtersArray[0].oValue1 = filterValue2;

oTable.getBinding("rows").filter(filtersArray, sap.ui.model.FilterType.Application);

Thanks in advance.

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

SAPSeeker
Participant
0 Likes

Changing values didn't work but deleting and creating a new entry in the array worked. It's strange but closing the question since it worked.

Answers (0)