Skip to Content
0

Use of Criticality in Ui5 from Odata

Oct 02, 2017 at 01:53 PM

99

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Oct 02, 2017 at 02:32 PM
0

have solved it myself

just close it

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Can you share your findings?

0
Former Member

The Odata field should be defined as integer (Edm.Int32) on the segw model

Then you can set it to 0,1,2 or 3 and the icon will be displayed

1