on 09-03-2020 11:58 AM
Hey guys,
I am building a fiori list report app with ABAP CDS VIEW. The cds view uses sorting, grouping and aggregation annotations, therefore the type of the table is Analytical.
When running the app from SAP WEB IDE I have this result:
I would like to know if there is a way we can optimize the column width, so that the width depends on the content of each field? A functionality that for now, I have it only if I double click on each column separator.
My manifest.json file of the app looks like this:
Thanks 🙂
Hi,
Use different table type in manifest.json file. Below is an example.
"list": true,
"settings": {
"tableType": "ResponsiveTable",
"smartVariantManagement": true,
"condensedTableLayout": true
}
table type can be as below. Responsive table type adjusts column width accordingly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Bleona,
Please refer to the following documention related to table column width: https://sapui5.hana.ondemand.com/#/topic/a76525362b754354a85981a7389ca7af
Regards,
Abhishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Abhishek,
I don't want to set the width of each column individually, I want all the columns to be optimized. Shouldn't that be the default behaviour?
It really makes for bad usability for Grid-table, when you don't see some of the columns, instead you see a lot of empty spaces in the first couple of columns.
Looping through each column and setting them optimized in an extension to a List Report template is not really ideal.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.