on 10-25-2017 8:35 AM
Hello,
I’m having some weird issues with Chart Cards in an Overview Page application (https://blogs.sap.com/2017/09/22/sap-fiori-overview-page-all-about-chart-cards-part-1/). List cards seem to work fine.
"ZA_OVP_LogViewer_card00": {
"model": "ZA_GATEWAY_SRV",
"template": "sap.ovp.cards.charts.analytical",
"settings": {
"title": "{{ZA_OVP_LogViewer_card00_title}}",
"entitySet": "logTopFiveUISet",
"selectionAnnotationPath": "com.sap.vocabularies.UI.v1.SelectionVariant",
"chartAnnotationPath": "com.sap.vocabularies.UI.v1.Chart#TopFiveUIChart",
"presentationAnnotationPath": "com.sap.vocabularies.UI.v1.PresentationVariant",
"selectionPresentationAnnotationPath": "com.sap.vocabularies.UI.v1.SelectionPresentationVariant",
"identificationAnnotationPath": "com.sap.vocabularies.UI.v1.Identification#TopFiveUIId",
"navigation": "dataPointNav"
}
},
"ZA_OVP_LogViewer_card01": {
"model": "ZA_GATEWAY_SRV",
"template": "sap.ovp.cards.charts.analytical",
"settings": {
"title": "{{ZA_OVP_LogViewer_card01_title}}",
"entitySet": "logTopFiveAbapSet",
"selectionAnnotationPath": "com.sap.vocabularies.UI.v1.SelectionVariant",
"chartAnnotationPath": "com.sap.vocabularies.UI.v1.Chart#TopFiveAbapChart",
"presentationAnnotationPath": "com.sap.vocabularies.UI.v1.PresentationVariant",
"selectionPresentationAnnotationPath": "com.sap.vocabularies.UI.v1.SelectionPresentationVariant",
"identificationAnnotationPath": "com.sap.vocabularies.UI.v1.Identification#TopFiveAbapId",
"navigation": "dataPointNav"
}
},
<Annotations Target="ZA_GATEWAY_SRV.logTopFiveUI">
<Annotation Term="UI.Chart" Qualifier="TopFiveUIChart">
<Record Type="UI.ChartDefinitionType">
<PropertyValue Property="ChartType" EnumMember="UI.ChartType/Column"/>
<PropertyValue Property="Measures"/>
<PropertyValue Property="MeasureAttributes">
<Collection>
<Record Type="UI.ChartMeasureAttributeType">
<PropertyValue Property="Measure" PropertyPath="frequentie"/>
<PropertyValue Property="Role" EnumMember="UI.ChartMeasureRoleType/Axis1"/>
</Record>
</Collection>
</PropertyValue>
<PropertyValue Property="Dimensions"/>
<PropertyValue Property="DimensionAttributes">
<Collection>
<Record Type="UI.ChartDimensionAttributeType">
<PropertyValue Property="Dimension" PropertyPath="toepassingId"/>
<PropertyValue Property="Role" EnumMember="UI.ChartDimensionRoleType/Category"/>
</Record>
</Collection>
</PropertyValue>
<PropertyValue Property="Actions"/>
</Record>
</Annotation>
<Annotation Term="UI.Identification" Qualifier="TopFiveUIId"/>
</Annotations>
<Annotations Target="ZA_GATEWAY_SRV.logTopFiveAbap">
<Annotation Term="UI.Chart" Qualifier="TopFiveAbapChart">
<Record Type="UI.ChartDefinitionType">
<PropertyValue Property="ChartType" EnumMember="UI.ChartType/Column"/>
<PropertyValue Property="Measures"/>
<PropertyValue Property="MeasureAttributes">
<Collection>
<Record Type="UI.ChartMeasureAttributeType">
<PropertyValue Property="Measure" PropertyPath="frequentie"/>
<PropertyValue Property="Role" EnumMember="UI.ChartMeasureRoleType/Axis1"/>
</Record>
</Collection>
</PropertyValue>
<PropertyValue Property="Dimensions"/>
<PropertyValue Property="DimensionAttributes">
<Collection>
<Record Type="UI.ChartDimensionAttributeType">
<PropertyValue Property="Dimension" PropertyPath="toepassingId"/>
<PropertyValue Property="Role" EnumMember="UI.ChartDimensionRoleType/Category"/>
</Record>
</Collection>
</PropertyValue>
<PropertyValue Property="Actions"/>
</Record>
</Annotation>
</Annotations>
Please check if the metadata contains labels for both the properties toepassingId and frequentie.
Missing label should be the reason behind undefined by undefined, alternatively you can provide a chart title in the annotation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So I found one solution: I changed my browser language from English to Dutch, and the cards are shown. No idea whatsoever about why this is the case. Anyone?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
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.