on ‎2021 May 18 7:08 PM
Hi,
I am trying to add grouping to the table on my List Report page. I added the following annotations in CDS:
annotate service with @(UI: {
PresentationVariant : {
SortOrder : [{
$Type : 'Common.SortOrderType',
Property : occurredAt,
Descending : true
}],
GroupBy : [
correlationId
],
RequestAtLeast : [
occurredAt, correlationId
],
Visualizations : ['@UI.LineItem']
},
...
Sorting for the table seems to work as intended, however group by has no effect. I also tried different table types (GridTable, TreeTable, AnalyticalTable) but the grouping does not get applied for any type.
What is the correct way to group data in a table of the List Report page via annotations?
Request clarification before answering.
You can check the annotations.cds#L132 for the CAP SFlight example. A multi level grouping works only with the AnalyticalTable. With the ResponsiveTable you can only use one grouping level.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.