Advertisement
ignatov

Untitled

Mar 10th, 2020
856
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     onSearch: function (oEvent) {
  2.             var aFilters = [];
  3.             var sQuery = oEvent.getSource().getValue();
  4.             if (sQuery && sQuery.length > 0) {
  5.                 var filter = new Filter("emplLName", sap.ui.model.FilterOperator.Contains, sQuery);
  6.                 aFilters.push(filter);
  7.             }
  8.            
  9.             var oList = this.byId("idEmployeeTable");
  10.             var oBinding = oList.getBinding("items");
  11.             oBinding.filter(aFilters, "Application");
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement