cancel
Showing results for 
Search instead for 
Did you mean: 

chart is not showing in object page

0 Kudos

hello everybody,

i tried to display chart in a section.in object page. i used facet with reference . but chart is not showing.

anyone have an idea??

there is the result.if anyone have any idea.thank you for replying

Accepted Solutions (0)

Answers (1)

Answers (1)

MioYasutake
Active Contributor

Hi,

Document says object page does not support UI.Chart with qualifier.

If you have specified UI.Chart#charbyDeath as the target of ReferenceFacet, this may be the reason. Try removing Qualifier from UI.Chart annnotation.

Regards,

Mio

0 Kudos

thank you for your answer, i tried to remove qualifiers .but still the same problem. don't know if that can be related to mock data which i used.

MioYasutake
Active Contributor
0 Kudos

If you remove the Reference Facet containing UI.Chart, the app runs without those errors?

0 Kudos

no, still some errors . i don't know if it's object page is not configured to show chart in content section

MioYasutake
Active Contributor
0 Kudos

The first four errors indicate there is issue with routing configuration.

Have you generated this app with list report template?

Can I see the routing configuration in manifest.json?

0 Kudos

yess, i used app with template

manifest.txt

MioYasutake
Active Contributor

Sorry, I haven't been able to figure this out.

According to below blog, there are 2 points to keep in mind.

https://blogs.sap.com/2017/11/27/smart-charts-in-object-pages-using-abap-cds-annotations/#

1. You need a separate entity for chart even if main entity and the entity for chart share the same keys.

2. The main entity needs to have [0..*] instead of [0..1] association to the entity for chart.