title: Calling Controller Function from inside a press handler in sapui5
body: <p>I want to filter a table on ButtonPress an set the Table + 3 other buttons visible. My wish is to do that in the controller, but I cant seem to find a way to call a Controller Function inside the event Handler.</p>
  
  <p>The Button:</p>
  
  <pre><code>var searchButton = new sap.ui.commons.Button({
              text: 'Partner suchen',
              width: "100%",
              press: function(oEvent) {
                  var myInput = sap.ui.getCore().byId('Handler').getValue(); //$('.row input[role="textbox"]:enabled').val();
                  var query = oEvent.getParameter("query");
  
                  var listBinding = oTable2.getBinding();
                  var oFilter = new sap.ui.model.Filter ("nummer", sap.ui.model.FilterOperator.EQ, myInput);
                  listBinding.filter([oFilter]);
  
                  //[oController.enablen, oController]
  
                  //sap.ui.getCore().byId('vertL2').setVisible(true);
                  //sap.ui.getCore().byId(this.createId('anlegBut')).setEnabled(true);
                  //sap.ui.getCore().byId(this.createId('editBut')).setEnabled(true);
                  //sap.ui.getCore().byId(this.createId('submitBut')).setEnabled(true);
              }
          });
  </code></pre>
  
  <p>In my controller I have this function that I want to call:</p>
  
  <pre><code>enablen : function () {
      var view = this.getView();
  
      sap.ui.getCore().byId('vertL2').setVisible(true);
      view.byId('anlegBut').setEnabled(true);
      view.byId('editBut').setEnabled(true);
      view.byId('submitBut').setEnabled(true);
  }
  </code></pre>
  
  <p>But calling it inside the Event Handler of the Button seems not possible. </p>