on ‎2021 May 13 12:53 AM
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.
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.