‎2024 Mar 05 10:03 PM - edited ‎2024 Mar 05 10:11 PM
Hey fellow devs,
I am trying to show the total values in a grouped list in my fiori app. Basically something like this:
I have created a CDS entity, a projection (provider contract transactional_query) and a behavior. However it seems to be impossible to add a total value for a column. As soon as I add the annotation @DefaultAggregation: #SUM to my CDS projection my service definition (both OData v2 and v4) will break and raise the following error message: Error related to element '...' of entity '...(CDS)': Aggregate functions are not allowed in transactional views.
So I am a little lost on how to add a total value to my list report. Does anyone know if and how this is possible or if there is a simple workaround?
Request clarification before answering.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @M-A-R-C ,
can you please share some screenshots of the solution that you have found ?
I have similar requirement, I need to group the table by three fields and the calculate the sum for each group.
The problem occurs when to add a custom button in order to post accounting documents then the service does not work.
| User | Count |
|---|---|
| 11 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 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.