Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cap-notebook/demoapp/app/admin-books/fiori-service.cds
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,7 @@ annotate AdminService.Books with {
annotate AdminService.Books with {
genre @Common.ValueListWithFixedValues;
}

annotate AdminService.Books.attachments with {
customProperty1 @Common.ValueListWithFixedValues;
}
8 changes: 1 addition & 7 deletions cap-notebook/demoapp/srv/attachment-extension.cds
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ entity Statuses @cds.autoexpose @readonly {

extend Attachments with {
statusText : Association to Statuses on statusText.code = $self.status;
customProperty1 : WDIRS_CodeList_TYPE
customProperty1 : Association to WDIRSCodeList
@SDM.Attachments.AdditionalProperty: {
name: 'Working:DocumentInfoRecordString'
}
Expand Down Expand Up @@ -48,12 +48,6 @@ extend Attachments with {
entity WDIRSCodeList : CodeList {
key code : String(30) @Common.Text : name @Common.TextArrangement: #TextFirst;
};

type WDIRS_CodeList_TYPE : Association to one WDIRSCodeList;

annotate Attachments with {
WDIRS_CodeList_TYPE @Common.ValueListWithFixedValues : true @Common.Text: WDIRS_CodeList_TYPE.name @Common.TextArrangement: #TextFirst;
}

annotate Books.attachments with {
status @(
Expand Down
Loading