The areas of the Object Page below the header facets are facets grouped by sections. There is also a navigation bar for navigation to specific sections.
Types of Facets in Sections
Let's explore the various types of facets.
A detailed explanation for smart chart facets is given in a later lesson of this course.
Detailed information about sections, indicator facets, and data point facets is given in a later chapter of this course.
For a full list of the types of header facets, open the SAPUI5 SDK and navigate to the following path: Documentation → Developing Apps with SAP Fiori Elements → List Report and Object Page → Configuring Object Page Features → Defining and Adapting Sections.
Field Group Facets - CDS Annotation
This video shows the CDS annotations that you will use to add a field group facet in a section.
Field Group Facets-Local Annotation
Back end annotations do not support the definition of facets. Local annotation can be used to define facets. Guided Development will help you create a facet and add the facet (if needed) to a newly created section.
There are different terms for the collection facet and the reference facet. The steps are:
- Create a UI.CollectionFacet.
- Create a UI.ReferenceFacet under the collection facet and reference it to field group annotation.
Arrangement of Sections and Facets
The figure illustrates the arrangement of sections and facets.
All sections arrange vertically. All facets in a section arrange in a row.
Display Data of Sub-Entity
If you need to display data from a 1 to * association as a table in an object page, you should use a reference facet to create a section, since the section can only contain one facet.
Facets can display data of a sub-entity through CDS annotation and local annotation. Let's see how.
Note that when exposing a CDS view as an OData service, SAP added "to" before CDS association name as OData association name. For adding new sections developers can use the guided development feature of SAP Business Application Studio.