cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Overview Page Card annotations

architectSAP
Active Contributor
0 Kudos

Dear experts,

I have been trying to display HCP IoT data on Fiori OVP Cards but don’t seem to be able to find a complete reference especially of the UI.ChartDefinitionType. Specifically, I cannot replace the table column names with labels as highlighted below:

Is there a complete annotation reference with detailed examples? I checked the official Annotations Used in Overview Pages documentation, but that does not seem to go into that level of detail. Please find my annotations file attached.

Many thanks for any help in advance

Frank

Accepted Solutions (0)

Answers (1)

Answers (1)

suneet_agarwal
Employee
Employee
0 Kudos

Labels for these properties should be read from the metadata.xml file.

Are labels maintained there?

For example:

In Annotation File:

<PropertyValue Property="Measure" PropertyPath="MyCurrency"/>

Should have corresponding Label in the metadata:

<Property Name="MyCurrency" Type="Edm.Decimal" Precision="16" Scale="3" sap:aggregation-role="measure" sap:unit="CCurrency" sap:label="CountryCurrency" sap:filterable="false"/>

architectSAP
Active Contributor
0 Kudos

Hello Suneet,

thank you very much for your quick reply. However, editing the metadata.xml file does not seem to have the desired effect.

This is the line in my annotation file:

<PropertyValue Property="Measure" PropertyPath="C_DISTANCE"/>

I then search my metadata.xml file and find a respective entry that I amend with a sap:label property:

<Property Name="C_DISTANCE" Type="Edm.Double" mms:ColumnName="C_DISTANCE"

      xmlns:mms="com.sap.iotservices.mms"

     sap:label="Distance">

</Property>

Unfortunately re-running the application, this setting does not seem to have the desired effect.

Am I missing something?

Many thanks in advance for your help again

Frank