Skip to Content
0
Oct 02, 2017 at 01:53 PM

Use of Criticality in Ui5 from Odata

1102 Views

Hi all

I am trying to use Fiori elements and would like to invoke the "Criticality" on a new fiori overview list.

I would like to have my oData from abap to control the property on the icon on the "Criticality" (can have 4 diffrent values 0, 1, 2, 3) - see here :

https://wiki.scn.sap.com/wiki/display/EmTech/OData+4.0+Vocabularies+-+SAP+UI#CriticalityType

My annotations look like this - where the field IconPickLight contains 0, 1, 2 or 3

<Record Type="UI.DataField">

<PropertyValue Property="Value" Path="IconPickLight"/>

<PropertyValue Property="Criticality" Path="IconPickLight"/>

<PropertyValue Property="Label" String="Labelname"/>

</Record>

BUT my list won't show the icon - only the value...

What should I then send from the odata ?

br

Lars