title: How to delete colums from view settings on SmartTable?
body: <p>I would like to delete several columns from view settings on <a href="https://sapui5.hana.ondemand.com/#/api/sap.ui.comp.smarttable.SmartTable/overview" rel="nofollow noreferrer">SmartTable</a>, after received the data.</p>
  
  <p>For example: </p>
  
  <p><a href="https://i.stack.imgur.com/gNbMS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gNbMS.png" alt="enter image description here"></a></p>
  
  <p>The fields within the red border should not be available on the view settings. 
  I tried as following, but it does not work.</p>
  
  <pre><code>var appMode = null;
  
  sap.ui.controller("MA_Reporting.ext.controller.ListReportExt", {
  
      onInit: function () {
  
          //Model-Instanz holen       
          var oModel = this.getOwnerComponent().getModel();
  
          var oSmartTable = this.getView().byId("listReport");
          oSmartTable.setIgnoredFields("Lo,Lo100,Lo13");
  
          //var oSmartTable = this.getView().byId("listReport");
          var that = this;
  
          this._getAppParameters()
              .then(function (oData) {
  
                  appMode = oData.getAppParameters.Appmode;
  
                  var hostname = window.location.hostname;
  
                  var oSmartTable = that.getView().byId("listReport");
  
                  var orgsichtFilter = that.getView().byId("listReportFilter").getAllFilterItems().find(function (oElement) {
                      return oElement.getProperty("name") === "Orgsicht";
                  }).getControl();
  
                  if (hostname != "example.com") {
  
                      // Ausblenden Flag "öffentlich" bei Anlegen von Filter-Varianten
                      that.getView().byId("listReportFilter")._oSmartVariantManagement.setShowShare(false);
  
                      // Ausblenden Flag "öffentlich" bei Anlegen von Tabellen-Varianten
                      that.getView().byId("listReport")._oVariantManagement.setShowShare(false);
  
                  }
  
                  var variantManagement = that.getView().byId("listReport")._oVariantManagement;
  
                  //Model-Instanz holen       
                  var oModel = that.getOwnerComponent().getModel();
  
                  variantManagement.getVariantItems().forEach(function (varItem) {
  
                      if (varItem.getText() == "liste" &amp;&amp; appMode == "FI_ASSI") {
                          variantManagement.removeVariantItem(varItem);
                      }
                  });
  
                  // Default-Wert von Dropdown-Liste "Orgsicht" auf "Alle Mitarbeiter" setzen für ASSI-Rolle
                  if (appMode == "FI_ASSI") {
                      orgsichtFilter.setSelectedKey("TEST_ASSI_01_");
                      oSmartTable.setIgnoredFields("Lo,Lo100,Lo13");
                  }
              }, function (oError) {
                  console.log(oError);
              });
  
      },
  
      _getAppParameters: function () {
          var oModel = this.getOwnerComponent().getModel();
  
          return new Promise(function (resolve, reject) {
              oModel.callFunction("/getAppParameters", {
                  method: "GET",
                  urlParameters: null,
                  context: null,
                  success: function (oData) {
                      resolve(oData);
                  },
                  error: function (oError) {
                      reject(oError);
                  },
              });
  
          });
      },
  
      onExit: function () {},
  
      onBeforeRendering: function () {},
  
      onAfterRendering: function () {
      }
  }); 
  </code></pre>
  
  <p>As you can see on the code above, the line  <code>oSmartTable.setIgnoredFields("Lo,Lo100,Lo13");</code> I am trying to hide the column, but it does not work. What am I doing wrong?  </p>