function (sQuery) {
			// add filter for search
			var aFilters = [];
			if (sQuery && sQuery.length > 0) {
				aFilters = new Filter({
					filters: [
						new Filter("name", FilterOperator.Contains, sQuery),
						new Filter("fileType", FilterOperator.Contains, sQuery)
					],
					and: false
				});
			}

			// update list binding
			var oList = this.byId("masterComponentsList");
			var oBinding = oList.getBinding("items");
			oBinding.filter(aFilters, "content");
		}
function (sQuery) {
			// add filter for search
			var aFilters = [];
			if (sQuery && sQuery.length > 0) {
				aFilters = new Filter({
					filters: [
						new Filter("name", FilterOperator.Contains, sQuery),
						new Filter("fileType", FilterOperator.Contains, sQuery)
					],
					and: false
				});
			}

			// update list binding
			var oList = this.byId("masterComponentsList");
			var oBinding = oList.getBinding("items");
			oBinding.filter(aFilters, "content");
		}
function ( sQuery ) { // add filter for search var aFilters = [ ] ; if ( sQuery && sQuery . length > 0 ) { aFilters = new Filter ( { filters : [ new Filter ( "name" , FilterOperator . Contains , sQuery ) , new Filter ( "fileType" , FilterOperator . Contains , sQuery ) ] , and : false } ) ; } // update list binding var oList = this . byId ( "masterComponentsList" ) ; var oBinding = oList . getBinding ( "items" ) ; oBinding . filter ( aFilters , "content" ) ; }
Filters the binding of the master list;
This function is also called once navigation to the page to clear the filters or input search entry.
@param {String} sQuery - entered string within the search field
@public
Filters the binding of the master list ; This function is also called once navigation to the page to clear the filters or input search entry .
search for all items in the master components list