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

Fiori freestyle Chart

glauco
Active Contributor
0 Kudos
419

Hi.

I followed an example, but the app is not showing my chart.

https://blogs.sap.com/2019/10/14/simple-sapui5-app-to-display-charts/comment-page-1/#comment-610585

Project shows no errors.
My cds view return records.
My test in /iwfnd/maint_service returns records and metadata.
Created freestyle app and pointed to my CDS view service.

How to make it appear on page please ?
What could I forget to do ?

metadata.xml

<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:sap="http://www.sap.com/Protocols/SAPData">
<edmx:Reference Uri="https://xxxx.xxxxxxx.com:xxxx/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Vocabularies(TechnicalName='%2FIWBEP%2FVOC_COMMON',Version='0001',SAP__Origin='LOCAL')/$value" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
<edmx:Include Namespace="com.sap.vocabularies.Common.v1" Alias="Common"/>
</edmx:Reference>
<edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470968/UI.xml?api=v2">
<edmx:Include Alias="UI" Namespace="com.sap.vocabularies.UI.v1"/>
</edmx:Reference>
<edmx:DataServices m:DataServiceVersion="2.0">
<Schema Namespace="zECQxxxx_QUERY_CDS" xml:lang="pt" sap:schema-version="1" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
<EntityType Name="zDCQxxxx_QUERYType" sap:label="master data (QUERY)" sap:semantics="aggregate" sap:content-version="1">
<Key>
<PropertyRef Name="ID"/>
</Key>
<!-- (.....) -->
</Record>
</Annotation>
</Annotations>
<!-- CHART -->
<Annotations Target="ZECQxxxx_QUERY_CDS.ZDCQxxxx_QUERYType"
xmlns="http://docs.oasis-open.org/odata/ns/edm">
<Annotation Term="com.sap.vocabularies.UI.v1.Chart">
<Record>
<PropertyValue Property="Title" String="Line Items" />
<PropertyValue Property="ChartType"
EnumMember="com.sap.vocabularies.UI.v1.ChartType/Donut" />
<PropertyValue Property="Dimensions">
<Collection>
<PropertyPath>material</PropertyPath>
</Collection>
</PropertyValue>
<PropertyValue Property="Measures">
<Collection>
<PropertyPath>count</PropertyPath>
</Collection>
</PropertyValue>
</Record>
</Annotation>
</Annotations>
<!-- end CHART -->

View1.view.xml

<mvc:View
controllerName="zxxxxgraf.controller.View1"
xmlns:mvc="sap.ui.core.mvc"
displayBlock="true"
xmlns="sap.m"
xmlns:smartChart="sap.ui.comp.smartchart"
xmlns:sl="sap.ui.comp.navpopover"
height="100%"
>
<smartChart:SmartChart
id="_IDGenSmartChart1"
enableAutoBinding="true"
entitySet="zDCQxxxx_QUERY"
useVariantManagement="true"
persistencyKey="SmartChart_Explored"
useChartPersonalisation="true"
header="">

</smartChart:SmartChart>
</mvc:View>

Accepted Solutions (0)

Answers (0)