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

Display Icon in object header

VISHAL_JHA
Explorer
0 Kudos
630

Hi,

I am trying t upload an icon on object page header in RAP application.
I am providing values form SAP-icons for example sap-icon://accelerated. it is populating the error "Annotation value must not contain the // character" . Could you please help me to understand how to pass correct value to image URL 

VISHAL_JHA_0-1748262367846.png

Thanks

 

View Entire Topic
Rithika
Product and Topic Expert
Product and Topic Expert

 

Hi @VISHAL_JHA 

Object page header expects a property name (field name) or icon name, not a full URL or sap-icon://.

Instead try using 

UI.headerInfo.typeImageUrlStringThis annotation contains the URL of an image representing an entity.

If you still want to use imageUrl which is "This annotation represents a path to an element containing the URL of an image representing the entity instance" then First initialize data(icon) = 'sap-icon://accelerated' and then imageUrl="icon" within the object page header.

Details are given in this documentation -https://help.sap.com/doc/saphelp_nw75/7.5.5/en-US/f8/af07bb0770414bb38a25cae29a12e9/content.htm?no_c... within in the "UI.headerInfo" section

VISHAL_JHA
Explorer
0 Kudos
Thank you so much Rithika, i have used suggest annotation and it is working.