cancel
Showing results for 
Search instead for 
Did you mean: 

@UI Annotation for Smart Filter Bar in Freestyle Application

0 Kudos

Hi,

In my freestyle Fiori application I am using Smart Filter Bar.

UI annotations are added in the Metadata Extension file for the CDS.

CDS is exposed as OData V2 - UI using RAP.

However the Smart Filter Bar in the freestyle application is ignoring the UI annotations. But it works as expected in the Fiori element application.

Please let me know what is wrong. Thanks!

View with Smart Filter Bar. 'ValueKey' is the alias entity name.

Metadata Extension file for CDS.

Smart Filter Bar appears as below. All the fields from entity 'ValueKey' is available to choose from Filters.

Thank you!

DEEP
Explorer
0 Kudos

Hi sreekanthpavoor
what's the resolution you got?

Accepted Solutions (0)

Answers (1)

Answers (1)

MioYasutake
Active Contributor
0 Kudos

Hi sreekanthpavoor,

The property entitySet in SmartFilterbar should match the entity name in the OData metadata.

In your case, I guess it's 'xxx_I_ParamValueKey'.

0 Kudos

Hi mioyasutake,

I have given an alias name (ValueKey) for the CDS in the Service Definition.
So, entity name is correct and I can see all the fields in the filter. This I have mentioned in the screen shot 3.

But I need only three fields in the filter bar and they should be visible by default. This is what I was trying to achieve through UI annotation.

BR,

Sreekanth