on 2024 Jul 05 6:25 AM
Hi all,
I am using CDS Annotations to create a Fiori Elements List Object app and have used a CDS view with Ui.Chart annotation to be called as Chart reference association from Object Page. But I am getting error as ‘Assertion failed: ManagedObject.apply: encountered unknown setting 'timeAxis' for class 'sap.chart.Chart' (value:'[object Object]')’ when loading the application.
Following is sample code:
@AbapCatalog.sqlViewName: 'ZTEMPCHARTVW'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Temperature Line Chart Data'
define view Z_TemperatureChartView
as select from ZTemperatureTable
{
key timestamp,
temperature
}
where timestamp >= $session.system_date - 3 and timestamp < $session.system_date
@ui.chart: [
{
chartType: #LINE,
dimensions: ['timestamp'],
measures: ['temperature'],
dimensionAttributes: [
{
dimension: 'timestamp',
role: #CATEGORY
}
],
measureAttributes: [
{
measure: 'temperature',
role: #AXIS_1
}
]
}
]
@ui.presentationVariant: [
{
sortOrder: [
{
by: 'timestamp',
direction: #ASC
}
]
}
]
can anybody suggest why the error is coming. I am using S4 on prem 2022 system.
regards,
Dev
Request clarification before answering.
| User | Count |
|---|---|
| 17 | |
| 7 | |
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 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.