Skip to Content
0
Dec 10, 2020 at 04:53 PM

How to add annotation to XSODATA

104 Views

Dear Experts,

Can you please help me understand how to add annotation(SAP:Filterable) to a property in oData Service.

data-model.cds -- > I have created all the data models

.xsodata -- > I have created an xsodata service

Now , I would like to create Smart Variant for a Page and in order to use it , I guess, some properties should have sap:filterable property in order to show the field Smart Filter bar.

At the moment, my XSODATA Service is having parameters as shown below

Type="Edm.String" Nullable="false" MaxLength="4"

I would like to add sap:filterable=true as well.