Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Uncaught typeError: Undefined is not a function

$
0
0

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


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>