feat: PoC for dynamic constraints using standard cds views

This commit is contained in:
Daniel Hutzel
2025-07-16 13:23:35 +02:00
parent dcb0c0394a
commit bd5a57189d
3 changed files with 86 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
namespace sap.capire.bookshop;
using from '../db/schema';
view Books.field.control as select from Books { ID,
genre.name == 'Drama' ? 'readonly' :
null as price
}
extend Books with {
fc : Association to Books.field.control on fc.ID = $self.ID
}