From ad76c699c973d08a39699fefb1449301211d6144 Mon Sep 17 00:00:00 2001 From: Pierre Fritsch Date: Tue, 8 Nov 2022 14:23:44 +0100 Subject: [PATCH] Add column labels for `age` and `lifetime` (#419) Co-authored-by: Christian Georgi --- fiori/app/_i18n/i18n.properties | 1 + fiori/app/admin-authors/fiori-service.cds | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/fiori/app/_i18n/i18n.properties b/fiori/app/_i18n/i18n.properties index 83681bcf..01f3fc54 100644 --- a/fiori/app/_i18n/i18n.properties +++ b/fiori/app/_i18n/i18n.properties @@ -12,6 +12,7 @@ DateOfDeath = Date of Death PlaceOfBirth = Place of Birth PlaceOfDeath = Place of Death Age = Age +Lifetime = Lifetime Authors = Authors Order = Order Orders = Orders diff --git a/fiori/app/admin-authors/fiori-service.cds b/fiori/app/admin-authors/fiori-service.cds index 2309eae6..9ca69224 100644 --- a/fiori/app/admin-authors/fiori-service.cds +++ b/fiori/app/admin-authors/fiori-service.cds @@ -43,5 +43,10 @@ extend sap.capire.bookshop.Authors with { virtual lifetime : String; } +annotate AdminService.Authors with { + age @Common.Label : '{i18n>Age}'; + lifetime @Common.Label : '{i18n>Lifetime}' +} + // Workaround for Fiori popup for asking user to enter a new UUID on Create annotate AdminService.Authors with { ID @Core.Computed; }