cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Group by not working in Fiori Elements UI for CAP project

former_member66
Advisor
Advisor
4,074

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
SAP Mentor
SAP Mentor
0 Likes

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.