diff --git a/README.md b/README.md index a3054a6d3..6a852108f 100644 --- a/README.md +++ b/README.md @@ -1298,6 +1298,8 @@ Filename=File Name linkUrl=Link Url type=Type ``` +**Note**: For localizing the CAP managed fields use the below keys +CreatedAt,CreatedBy,ChangedAt,ChangedBy and attachmentID for ID. ### Error Messages Localization diff --git a/pom.xml b/pom.xml index 802d1ef8f..a71a54c5b 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ - 1.8.1-SNAPSHOT + 1.0.0-RC1 17 ${java.version} ${java.version} diff --git a/sdm/src/main/resources/cds/com.sap.cds/sdm/attachments.cds b/sdm/src/main/resources/cds/com.sap.cds/sdm/attachments.cds index ddf5c1979..0ec521ebe 100644 --- a/sdm/src/main/resources/cds/com.sap.cds/sdm/attachments.cds +++ b/sdm/src/main/resources/cds/com.sap.cds/sdm/attachments.cds @@ -42,6 +42,7 @@ annotate Attachments with @UI: { {Value: createdAt, @HTML5.CssDefaults: {width: '20%'}}, {Value: createdBy, @HTML5.CssDefaults: {width: '15%'}}, {Value: note, @HTML5.CssDefaults: {width: '15%'}}, + { Value : uploadStatus, Criticality: uploadStatusNav.criticality, @@ -50,19 +51,28 @@ annotate Attachments with @UI: { }, ] } { - note @(title: '{i18n>Description}'); - fileName @(title: '{i18n>Filename}'); - modifiedAt @(odata.etag: null); - uploadStatus @(title: '{i18n>uploadStatus}', Common.Text : uploadStatusNav.name, Common.TextArrangement : #TextOnly); - content - @Core.ContentDisposition: { Filename: fileName, Type: 'inline' } - @(title: '{i18n>Attachment}'); - folderId @UI.Hidden; - repositoryId @UI.Hidden ; - objectId @UI.Hidden ; - mimeType @UI.Hidden; - status @UI.Hidden; - linkUrl @UI.Hidden; + note @(title: '{i18n>Description}'); + fileName @(title: '{i18n>Filename}'); + modifiedAt @(odata.etag: null); + uploadStatus @( + title : '{i18n>uploadStatus}', + Common.Text : uploadStatusNav.name, + Common.TextArrangement: #TextOnly + ); + content + @Core.ContentDisposition: { + Filename: fileName, + Type : 'inline' + } + @(title: '{i18n>Attachment}'); + folderId @UI.Hidden; + repositoryId @UI.Hidden; + objectId @UI.Hidden; + mimeType @UI.Hidden; + status @UI.Hidden; + linkUrl @UI.Hidden; + ID @(title: '{i18n>attachmentID}'); + } annotate Attachments with @Common: {SideEffects #ContentChanged: {