This question arose from drilling the original question: How to set a filter in the table drop-down list based on table row data
Background
I want to use a filter in the SAPUI5 popup menu, where I set the filter value based on the model property (data binding)
Problem
If I use a filter, where the value1 filter value1 is determined by data binding :
new sap.ui.model.Filter({ path : "division", operator : sap.ui.model.FilterOperator.EQ, value1 : "{/someProperty}" })
then the dropdown does not display any items
However, if I hardcode the value in the value1 property:
new sap.ui.model.Filter({ path : "division", operator : sap.ui.model.FilterOperator.EQ, value1 : "Test" })
Then the filter works as expected.
Question
Is it true that we cannot use data binding to indicate a filter value? Or should I implement it differently?
A small part of me can understand that installing a filter on a control model using a value from the same model can cause some relational problems, but this behavior also occurs when using two different named models (one for the drop-down list and one for the filter value)
Any help is much appreciated!
javascript sapui5
Qualiture
source share