on 03-20-2024 2:00 PM
I have a RAP object with the following structure:
All associations are [0..*]
RootEntity's object page has a line item facet for the association to SubEntity. This is a basic setup and works fine.
Now I want to display a Line Chart as a column in SubEntity's line item facet. The subentity ChartEntity has the content needed for the line chart. I have annotated ChartEntity with the following:
@Metadata.layer: #CORE
@UI.chart: [
{
qualifier: 'pleaseWork',
title: 'Line Micro Chart',
description: 'This is a micro chart',
chartType: #LINE,
measures: ['AverageDays'],
dimensions: ['TimePeriod'],
measureAttributes: [
{
measure: 'AverageDays',
role: #AXIS_1,
asDataPoint: true
}
]
}
]
annotate view <ChartEntity>
with
{
@UI.dataPoint: {
qualifier: 'AverageDays'
}
AverageDays;
}
And then in the SubEntity annotations I have added this:
@Metadata.layer: #CORE
annotate entity <SubEntity> with
{
@UI.lineItem: [ {
position: 10,
label: 'Main Value'
},
{
type: #AS_CHART,
label: 'Chart',
valueQualifier: 'pleaseWork',
targetElement: '_chartEntityAssociation',
position: 20
}
]
MainValue;
}
With the addition of the #AS_CHART object, the object page fails to render and I end up with this error in the browser's console:
Any thoughts on what I'm doing wrong?
User | Count |
---|---|
76 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.