com.sap.vocabularies.UI.v1.HeaderInfo/Title/Value determines the object title.
com.sap.vocabularies.UI.v1.HeaderInfo/Description/Value determines the subtitle.
com.sap.vocabularies.UI.v1.HeaderInfo/ImageUrl determines the image; the image shape is fixed as a circle.
com.sap.vocabularies.UI.v1.HeaderInfo/TypeName is taken as the text for the link that navigates back to the list report.
Label in Figure |
Element |
---|---|
1 |
Title (Object Type) |
2 |
Image of the object instance |
3 |
Language-dependent product text in SAP back-end system |
4 |
Product title in SAP back-end system |
The following sample code is a selectable version of the code above for setting up the main elements in the object page header.
<Annotation Term="UI.HeaderInfo"> <Record> <PropertyValue Property="TypeName" String="Product"/> <PropertyValue Property="TypeNamePlural" String="Products"/> <PropertyValue Property="ImageUrl" Path="ProductPictureURL"/> <PropertyValue Property="Title" <Record Type="UI.DataField"> <PropertyValue Property="Value" Path="to_ProductTextInCurrentLang/Name"/> </Record> </PropertyValue> PropertyValue Property="Description"> <Record Type="UI.DataField"> <PropertyValue Property="Value" Path="Product"/> </Record> </PropertyValue> </Record> </Annotation>