Skip to content

Commit f7bcd2c

Browse files
authored
Merge branch 'develop' into disableUploadButton
2 parents 2f9aa24 + c6a9960 commit f7bcd2c

2 files changed

Lines changed: 25 additions & 13 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,8 @@ Filename=File Name
13001300
linkUrl=Link Url
13011301
type=Type
13021302
```
1303+
**Note**: For localizing the CAP managed fields use the below keys
1304+
CreatedAt,CreatedBy,ChangedAt,ChangedBy and attachmentID for ID.
13031305

13041306
### Error Messages Localization
13051307

sdm/src/main/resources/cds/com.sap.cds/sdm/attachments.cds

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ annotate Attachments with @UI: {
4343
{Value: createdAt, @HTML5.CssDefaults: {width: '20%'}},
4444
{Value: createdBy, @HTML5.CssDefaults: {width: '15%'}},
4545
{Value: note, @HTML5.CssDefaults: {width: '15%'}},
46+
4647
{
4748
Value : uploadStatus,
4849
Criticality: uploadStatusNav.criticality,
@@ -51,19 +52,28 @@ annotate Attachments with @UI: {
5152
},
5253
]
5354
} {
54-
note @(title: '{i18n>Description}');
55-
fileName @(title: '{i18n>Filename}');
56-
modifiedAt @(odata.etag: null);
57-
uploadStatus @(title: '{i18n>uploadStatus}', Common.Text : uploadStatusNav.name, Common.TextArrangement : #TextOnly);
58-
content
59-
@Core.ContentDisposition: { Filename: fileName, Type: 'inline' }
60-
@(title: '{i18n>Attachment}');
61-
folderId @UI.Hidden;
62-
repositoryId @UI.Hidden ;
63-
objectId @UI.Hidden ;
64-
mimeType @UI.Hidden;
65-
status @UI.Hidden;
66-
linkUrl @UI.Hidden;
55+
note @(title: '{i18n>Description}');
56+
fileName @(title: '{i18n>Filename}');
57+
modifiedAt @(odata.etag: null);
58+
uploadStatus @(
59+
title : '{i18n>uploadStatus}',
60+
Common.Text : uploadStatusNav.name,
61+
Common.TextArrangement: #TextOnly
62+
);
63+
content
64+
@Core.ContentDisposition: {
65+
Filename: fileName,
66+
Type : 'inline'
67+
}
68+
@(title: '{i18n>Attachment}');
69+
folderId @UI.Hidden;
70+
repositoryId @UI.Hidden;
71+
objectId @UI.Hidden;
72+
mimeType @UI.Hidden;
73+
status @UI.Hidden;
74+
linkUrl @UI.Hidden;
75+
ID @(title: '{i18n>attachmentID}');
76+
6777
}
6878

6979
annotate Attachments with @Common: {SideEffects #ContentChanged: {

0 commit comments

Comments
 (0)