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

Smart chart facet is not working in Object page using ABAP CDS

dev_logan
Explorer
0 Kudos
395

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

Accepted Solutions (0)

Answers (0)