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

Sap Fiori Elements Tooltip for a field with a unit of measure is it possible?

TatianaFetecua
Explorer
0 Kudos
365

Hi Everyone,

I have a sap CAP Fiori Elements app, and in the object page I have a field that we would like to have a tool tip on it. My field in the Object Page looks originally like this, and it is a field with a unit of measure (using the annotation @Measures.Unit)

 

{
   $Type: 'UI.DataField',
   Value: sctcd,
}

 

this type does not support the annotation @Common.QuickInfo, I have found a work around for this using 

 

{	
   $Type : 'UI.DataFieldForAnnotation',
   Target: '@UI.DataPoint#fieldWithTooltip',
}

 

and 

 

UI.DataPoint #fieldWithTooltip: {
     Value               : sctcd,	
    ![@Common.QuickInfo]: 'tooltip text', 
}

 

as described in https://github.com/SAP-samples/fiori-elements-feature-showcase?tab=readme-ov-file#adding-a-field-wit....

However, when using this work around, the unit of measure field stop working as expected because does not display the help option anymore.

Any options to achieve this using Fiori Elements?

Thanks,

Tatiana F.

Accepted Solutions (0)

Answers (0)