From b35e92b5bc6ba6720351b12b569a7b7d1547187a Mon Sep 17 00:00:00 2001 From: Gregor Wolf Date: Sat, 13 Nov 2021 00:41:28 +0100 Subject: [PATCH] TextArrangement : #TextOnly --- fiori/app/common.cds | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/fiori/app/common.cds b/fiori/app/common.cds index bb04d29f..4bb18d4b 100644 --- a/fiori/app/common.cds +++ b/fiori/app/common.cds @@ -20,11 +20,12 @@ annotate my.Books with @( currency_code ], LineItem : [ - {Value : ID}, - {Value : title}, - {Value : author.ID}, { - Value : author.name, + Value : ID, + Label : '{i18n>Title}' + }, + { + Value : author.ID, Label : '{i18n>Author}' }, {Value : genre.name}, @@ -37,7 +38,11 @@ annotate my.Books with @( ] } ) { - title @Common.SemanticObject : 'Books'; + ID @Common: { + SemanticObject : 'Books', + Text: title, + TextArrangement : #TextOnly + }; author @ValueList.entity : 'Authors'; }; @@ -138,7 +143,11 @@ annotate my.Authors with @( ], } ) { - name @Common.SemanticObject : 'Authors'; + ID @Common: { + SemanticObject : 'Authors', + Text: name, + TextArrangement : #TextOnly, + }; }; ////////////////////////////////////////////////////////////////////////////