I am using sap.m and sap.ui.core.mvc with an XML view. In the view, I have a control like this:
<List
id="list"
items="{
path: '/Posts',
filters: [myFilter]
}"
...
</List>
I have a controller for this view. How can I pass a value to myFilter above? In my controller, I have this in my onInit function:
this.myFilter = new sap.ui.model.odata.Filter("post_type", [{operator: "EQ", value1: "question"}]);
Thanks for your help!