Show TOC

Contact FacetLocate this document in the navigation structure

Using the @Communication.Contact annotation, you can enable a quick view contact within the header form facet, as shown below:

Code Sample

In the example, the UI.DataFieldForAnnotation points to a contact annotation on a different entity, which has a 1:1 relation to the root entity, and so one contact is displayed in the header. The label, for example, Supplier, is taken from UI.DataFieldForAnnotation, and the value, for example SAP, is the fn property of the contact annotation.

<Annotation Term="UI.HeaderFacets">
					<Collection>
					<Record Type="UI.ReferenceFacet">
					<PropertyValue Property="Label" String="{@i18n>@GeneralInfoFacetLabel}"/>
					<PropertyValue Property="Target" AnnotationPath="@UI.FieldGroup#GeneralInformationForHeader"/>
					</Record>
					<Record Type="UI.ReferenceFacet">
					<PropertyValue Property="Label" String="{@i18n>@ProductCategory}/>
					<PropertyValue Property="Target" AnnotationPath="to_ProductCategory/@UI.Identification"/>
					</Record>
					<Record Type="UI.ReferenceFacet">
					<PropertyValue Property="Target" AnnotationPath="@UI.DataPoint#Price"/>
					</Record>
					<Record Type="UI.ReferenceFacet">
					<PropertyValue Property="Target" AnnotationPath="@UI.DataPoint#StockLevel"/>	
					</Record>
					</Collection>
					</Annotation>					
More Information

For more information about the Communication.Contact annotation, see Sections.