diff --git a/index.cds b/index.cds index 4e5e467..560dc01 100644 --- a/index.cds +++ b/index.cds @@ -5,19 +5,26 @@ extend aspect Attachments with { annotate Attachments with @UI:{ HeaderInfo: { - TypeName: '{i18n>Attachment}', + $Type : 'UI.HeaderInfoType', + TypeName : '{i18n>Attachment}', TypeNamePlural: '{i18n>Attachments}', }, LineItem: [ - {Value: filename}, - {Value: content}, - {Value: createdAt}, - {Value: createdBy}, - {Value: note} + {Value: filename, @HTML5.CssDefaults: {width: '20%'}}, + {Value: content, @HTML5.CssDefaults: {width: '20%'}}, + {Value: createdAt, @HTML5.CssDefaults: {width: '20%'}}, + {Value: createdBy, @HTML5.CssDefaults: {width: '20%'}}, + {Value: note, @HTML5.CssDefaults: {width: '20%'}} ] } { url @readonly; + note @(title: '{i18n>Note}'); + filename @(title: '{i18n>Filename}'); + modifiedAt @(odata.etag: null); content - @Core.ContentDisposition: { Filename: filename } - @Core.Immutable + @Core.ContentDisposition: { Filename: filename, Type: 'inline' } + @(title: '{i18n>Attachment}'); + folderId @UI.Hidden; + mimeType @UI.Hidden; + status @UI.Hidden; } \ No newline at end of file