Hello experts,
In my controller i have this function:
onSearch : function (oEvt) {
// add filter for search
var aFilters = [];
var sQuery = oEvt.getSource().getValue();
if (sQuery && sQuery.length > 0) {
var filter = new sap.ui.model.Filter("Name", sap.ui.model.FilterOperator.Contains, sQuery);
aFilters.push(filter);
}
// update list binding
var list = this.getView().byId("idList");
var binding = list.getBinding("items");
binding.filter(aFilters, "Application");
},
But i get an error at this line:
var list = this.getView().byId("idList");
Uncaught typeError: Undefined is not a function
Any Ideas ?
Kind Regards,
Bart