Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member185414
Active Contributor
Hi Community,

In this blog I will demonstrate how easy it is to configure rendering of existing facets ( already present in the backend CDS annotation ) but not shown in the WebIDE when creating a template based application. This occurs because WebIDE by default picks up only one associated annotation and not others.

Step by step guide –

  1. First of all we should adjust the manifest.json to configure the facets as below – Go to the "sap.ui.generic.app" section of the application descriptor file and navigate to the "pages" aggregation.


The names of associations should be taken from the metadata of the service document.


Details of the first association –


Similarly, we need to do same for all the associations.

2. Now we should adjust the annotation.xml file. Within the <Collection> tag navigate to <Record Type = "UI.ReferenceFacet"> and adjust as below for all associations –


Further we need to add details of above reference facets as


Note – AssociatedEntitySet’s names will be available in the metadata again.

Expanding one such reference facet will look like –


3. This is the last step where we need to create the i18n texts for the facet headers which we used in step 2.


 

In the next blog post, I will show how easily we can extend the Fiori Elements application generated via RAP with a custom control.

PS:- Previous blog.

As always, please provide your valuable feedback.