diff --git a/fiori/app/admin/fiori-service.cds b/fiori/app/admin/fiori-service.cds index e76e909f..a721c65a 100644 --- a/fiori/app/admin/fiori-service.cds +++ b/fiori/app/admin/fiori-service.cds @@ -1,4 +1,4 @@ -using { AdminService, sap.capire.bookshop } from '../../db/schema'; +using { AdminService } from '../../db/schema'; using from '../common'; // to help UI linter get the complete annotations //////////////////////////////////////////////////////////////////////////// @@ -87,9 +87,8 @@ annotate AdminService.Books.texts with @( annotate AdminService.Books.texts { locale @ValueList:{entity:'Languages',type:#fixed} } -// In addition we need to expose Languages and Books.texts through AdminService +// In addition we need to expose Languages through AdminService as a target for ValueList using { sap } from '@sap/cds/common'; extend service AdminService { - entity Languages as projection on sap.common.Languages; - entity Books.texts as projection on bookshop.Books.texts; + @readonly entity Languages as projection on sap.common.Languages; }