Show TOC

Contact FacetLocate this document in the navigation structure

To render a contacts list and contact facet, you add a UI.ReferenceFacet that points to contact annotation (type). It shows the label of the UI.ReferenceFacet and below the fn property of the contact annotation. If you click on the name, a quickview with the contact details is rendered as shown below:

Figure 1: Object Page: Contacts

The Facet annotation looks as follows:

Sample Code
<Record Type="UI.ReferenceFacet">
   <PropertyValue Property="Label" String="Supplier"/>
   <PropertyValue AnnotationPath="to_Supplier/@Communication.Contact" Property="Target"/>
</Record>

The Contact annotation looks as follows:

Sample Code
<Annotations Target="SEPMRA_PROD_MAN.SEPMRA_I_EmployeeType">
	<Annotation Term="Communication.Contact">
		<Record>
			<PropertyValue Property="fn" Path="FormattedName"/>
			<PropertyValue Property="title" Path="JobTitle"/>
			<PropertyValue Property="org" Path="CompanyName"/>
			<PropertyValue Property="role" Path="OrganizationRole"/>
			<PropertyValue Property="n">
				<Record>
					<PropertyValue Property="given" Path="FirstName"/>
					<PropertyValue Property="additional" Path="MiddleName"/>
					<PropertyValue Property="surname" Path="LastName"/>
				</Record>
										
			</PropertyValue>
			<PropertyValue Property="photo" Path="EmployeePictureURL"/>
			<PropertyValue Property="tel">
				<Collection>
					<Record>
						<PropertyValue Property="type" EnumMember="Communication.PhoneType/fax"/>
						<PropertyValue Property="uri" Path="FaxNumber"/>
					</Record>
					<Record>
						<PropertyValue Property="type" EnumMember="Communication.PhoneType/cell"/>
						<PropertyValue Property="uri" Path="MobilePhoneNumber"/>
					</Record>
					<Record>
						<PropertyValue Property="type" EnumMember="Communication.PhoneType/work"/>
						<PropertyValue Property="uri" Path="PhoneNumber"/>
					</Record>
					<Record>
						<PropertyValue Property="type" EnumMember=""/>
						<PropertyValue Property="address" Path="FaxNumber"/>
					</Record>
				</Collection>
			</PropertyValue>
			<PropertyValue Property="email">
				<Collection>
					<Record>
						<PropertyValue Property="type" EnumMember="Communication.ContactInformationType/work"/>
						<PropertyValue Property="address" Path="EmailAddress"/>
					</Record>
				</Collection> 
			</PropertyValue>
		</Record>
	</Annotation>
</Annotations>