Skip to Content
0
Jun 22, 2022 at 02:16 PM

fiori elements image not showing

226 Views

Hello,
on a ListReport page, I want to place a icon (image) to each line depending on some status value. To do so, I first create the imageURL like this. Please note that I also add @Semantics.imageUrl: true.

So inside my consumption view, I determine the image url like this

      case _Status.OrderIsReleased
      when 'X' then 'https://upload.wikimedia.org/wikipedia/commons/5/5d/White_flag_icon.svg'
      else ''
      end as statusIcon,
and I placed semantic infomation to the projection view. I already tried to place everything into the same view with no effect
define root view  entity ZC_abc as projection on ZI_PP_abc {
    key ManufacturingOrder,
    ...,
    ...,
    @Semantics.imageUrl: true
    statusIcon,

Lastly, I add this to my metadata extension to display the image.

  @UI.lineItem: [{ position: 10,  label:'', value:'statusIcon', importance: #HIGH }]
 ProductionPlant;

  

In the end, it always displays the image url as string instead of displaying the image itself. What's missing here?

image.png

Attachments

image.png (35.5 kB)