src/sap.ui.demokit/src/sap/ui/demokit/explored/view/master.controller.js
function () {

			// calculate text
			var sFilterText = "";
			jQuery.each(this._oViewSettings.filter, function (sProperty, aValues) {
				jQuery.each(aValues, function (i, aValue) {
					sFilterText += aValue + ", ";
				});
			});
			if (sFilterText.length > 0) {
				var iIndex = sFilterText.lastIndexOf(", ");
				sFilterText = sFilterText.substring(0, iIndex);
			}

			// update view
			var oView = this.getView();
			oView.byId("vsFilterBar").setVisible(sFilterText.length > 0);
			oView.byId("vsFilterLabel").setText(sFilterText);
		}
function () {

			// calculate text
			var sFilterText = "";
			jQuery.each(this._oViewSettings.filter, function (sProperty, aValues) {
				jQuery.each(aValues, function (i, aValue) {
					sFilterText += aValue + ", ";
				});
			});
			if (sFilterText.length > 0) {
				var iIndex = sFilterText.lastIndexOf(", ");
				sFilterText = sFilterText.substring(0, iIndex);
			}

			// update view
			var oView = this.getView();
			oView.byId("vsFilterBar").setVisible(sFilterText.length > 0);
			oView.byId("vsFilterLabel").setText(sFilterText);
		}
function ( ) { // calculate text var sFilterText = "" ; jQuery . each ( this . _oViewSettings . filter , function ( sProperty , aValues ) { jQuery . each ( aValues , function ( i , aValue ) { sFilterText += aValue + ", " ; } ) ; } ) ; if ( sFilterText . length > 0 ) { var iIndex = sFilterText . lastIndexOf ( ", " ) ; sFilterText = sFilterText . substring ( 0 , iIndex ) ; } // update view var oView = this . getView ( ) ; oView . byId ( "vsFilterBar" ) . setVisible ( sFilterText . length > 0 ) ; oView . byId ( "vsFilterLabel" ) . setText ( sFilterText ) ; }
Updates the filter bar in the view
Updates the filter bar in the view