Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Non Filterable data

0 Likes
599

Hi,

Does anyone know how to make an entity not filterable in CDS?

This is my entity:

entity Book { key id: UUID; name: String(100); author: String(200); numberPages: Integer; price: Decimal(6,2);}


This is my service:

entity Book as select from db.Book;


There is any kind of annotation like @readonly that disable all oData default filters? There is another way to do it different of any function?

Thanks

1 REPLY 1
Read only

evanireland
Product and Topic Expert
Product and Topic Expert
0 Likes
499

I'm no CAP expert so I can't answer the question as you asked it, but from a pure OData perspective I wonder if you can clarify why you would want to do this?