I am binding an OData model to the items of a list and try to apply a filter dynamically using the following syntax in an XML view:
<List
id="supplierList"
items="{
path : '/SupplierCollection',
filters : {
path : 'CompCode',
operator : 'EQ',
value1: {
path : 'general>/companyCode'
}
}
}"
The "general" model used here has been defined in the Component.js and is also referenced in the controller of the view:
onInit : function() {
...
var generalModel = sap.ui.getCore().getModel("general");
this.getView().setModel(generalModel, "general");
...
}
Unfortunately, the model doesn't seem to be parsed and the path is not interpreted correctly at runtime. But if I hard-code the value1 then the filter works properly.
Any idea on this issue?
Is it me using a wrong path to set the value1 of the filter? Or is it a bug?