cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

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

SAPSeeker
Participant
0 Likes
1,644

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.

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)