0
votes

Is there a way to use the ignoredFields property of a sap.ui.comp.smarttable.SmartTable to dynamically ignore columns? The value of ignoredFields should be changed while the app is running. Is the usage of ignoredFields the right way to do this or is there a better way? I already tried calling the setIgnoredFields() function of my SmartTable, but it didn't make any effect on my SmartTable, except when I called it in the onInit() function of the respective controller, which of course would defy the dynamic approach i'm looking after.

1
You want to dinamically hide colums, right? - Cmdd
@Cmdd that's exactly what I'm looking for - Timon Hüppi

1 Answers

0
votes

The only way I found to dinamically hide columns in a SmartTable is redefying the columns of the internal Table with all the columns I need and then setting the "visible" property of such columns accordingly.

I still wonder if it is the best solution but is the only one working...