on 2024 Jun 06 3:34 PM
I have a fiori elements app where I created a list report. This has a table with columns. In the settings of the table I can choose which additional columns I want to be displayed or which columns i want to hide. How can i customize this column list.
My goal is to delete some columns of that column list in the settings, because the user should not be able to choose them.
Request clarification before answering.
Hi,
either you do it via the annotation mentioned already @ui.hidden or you have a breakout in the frontend coding.
You get the SmartTable where you want to disable certain columns and you call the setIgnoredFields method:
var oSmartTable = this.getView().byId("<table_id>");
oSmartTable.setIgnoredFields("<ColumnName>,<ColumnName2>,...");
More information here: https://sapui5.hana.ondemand.com/#/api/sap.ui.comp.smarttable.SmartTable%23methods/setIgnoredFields
Best,
Edrilan Berisha
SAP S/4HANA Cloud Financials Development
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How about setting the UI.hidden: true annotation for the fields you do not want to expose to the user?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 17 | |
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.