CDS - Enable Search on Child Entity Fields in List Report

👋 Hello Everyone!

Enable Search on Child Entity Fields in List Report

If you want to make fields from an child entity available in the global search(List Report), Just follow these steps to achieve.

1️⃣ In your Root Entity, mark the exposed child entity with the annotation:

@Search.defaultSearchElement: true
_Booking;

2️⃣ In the child entity, specify the fields you want to be searchable:

@Search.defaultSearchElement: true
CarrierName;

🎥 Demo: Search on Child Entity Field (OData V4)

🔍 You can also enhance the search experience by enabling fuzzy search settings. Once this is done, the relevant fields will be included in the global search.

Comments

Popular posts from this blog

Fiori URL Generation and Navigation Using CL_LSAPI_MANAGER

RAP - Real Time UI Updates Using Event-Driven Side Effects

ABAP - Create CSV Files Easily Using CL_CSV_FACTORY