2024 Dec 04 8:09 PM - edited 2024 Dec 06 1:13 PM
I'm struggling to build analytical cards in a Fiori Overview Page. My source is an ABAP RAP Object providing the annotations via an OData v4 service. The symptom is that the card is displayed properly, with the frame of the chart (legend, axis look OK). However, the values and indeed the chart itself is not rendered. I checked the batch call, and the resulting content coming from the OData service is exactly as expected.
I am in BTP, running locally in BAS with the latest framework version, 1.127.5.
Chart annotation from view entity:
{
qualifier: 'RequestsByStatusChart',
chartType: #DONUT,
description: 'Requests by Status',
title: 'Requests by Status',
dimensions: [ 'SummaryStatus' ],
dimensionAttributes: [{
dimension: 'SummaryStatus',
role: #CATEGORY
}],
measures: [ 'RecordCount' ],
measureAttributes: [{
measure: 'RecordCount',
role: #AXIS_1
}]
}
Card definition in manifest.json:
"RequestCountByStatus": {
"template": "sap.ovp.cards.v4.charts.analytical",
"model": "mainModel",
"settings": {
"chartAnnotationPath": "com.sap.vocabularies.UI.v1.Chart#RequestsByStatusChart",
"entitySet": "Requests",
"title": "{{requestCountStatusTitle}}",
"subTitle": "{{requestCountStatusDesc}}",
"defaultSpan": {
"cols": 2,
"rows": 7
},
"identificationAnnotationPath": "com.sap.vocabularies.UI.v1.Identification#ManageRequests",
"presentationAnnotationPath": "com.sap.vocabularies.UI.v1.PresentationVariant#RequestsByStatusPres",
"dataPointAnnotationPath": "com.sap.vocabularies.UI.v1.DataPoint#RequestsByStatusDatapoint"
}
}
Response from OData service (the other annotation qualifers exist and are well :
{
"@odata.context": "$metadata#Requests(SummaryStatus,SummaryStatusDesc,RecordCountAggregate)",
"@odata.metadataEtag": "W/\"20241204174330\"",
"value": [{
"SummaryStatus": "COMPLETE",
"SummaryStatusDesc": "Complete",
"RecordCountAggregate": 2,
"RecordCountAggregate@odata.type": "#Byte"
}, {
"SummaryStatus": "FAILED",
"SummaryStatusDesc": "Failed",
"RecordCountAggregate": 26,
"RecordCountAggregate@odata.type": "#Byte"
}, {
"SummaryStatus": "IN_PROCESS",
"SummaryStatusDesc": "In Process",
"RecordCountAggregate": 110,
"RecordCountAggregate@odata.type": "#Byte"
}
]
}
The result:
As you can see, the datapoint is loading correctly, the legend is being rendered, but the graph itself is not there.
Any ideas what I'm missing?
Request clarification before answering.
I am facing the same issue with the difference that my data is mock data. I suspect the issue might be in the annotation or metadata.xml...
Anyway, could you solve this issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 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.