Skip to content
Merged
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
18 changes: 12 additions & 6 deletions cap-notebook/demoapp/srv/attachment-extension.cds
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,43 @@ entity Statuses @cds.autoexpose @readonly {

extend Attachments with {
statusText : Association to Statuses on statusText.code = $self.status;
Working___DocumentInfoRecordString : String
customProperty1 : WDIRS_CodeList_TYPE
@SDM.Attachments.AdditionalProperty: {
name: 'Working:DocumentInfoRecordString'
}
@(title: 'DocumentInfoRecordString');
Working___DocumentInfoRecordInt : Integer
customProperty2 : Integer
@SDM.Attachments.AdditionalProperty: {
name: 'Working:DocumentInfoRecordInt'
};
abc___myId1 : String
customProperty3 : String
@SDM.Attachments.AdditionalProperty: {
name: 'abc:myId1'
}
@(title: 'id1');
abc___myId2 : String
customProperty4 : String
@SDM.Attachments.AdditionalProperty: {
name: 'abc:myId2'
}
@(title: 'id2');
Working___DocumentInfoRecordDate : DateTime
customProperty5 : DateTime
@SDM.Attachments.AdditionalProperty: {
name: 'Working:DocumentInfoRecordDate'
}
@(title: 'DocumentInfoRecordDate');
Working___DocumentInfoRecordBoolean : Boolean
customProperty6 : Boolean
@SDM.Attachments.AdditionalProperty: {
name: 'Working:DocumentInfoRecordBoolean'
}
@(title: 'DocumentInfoRecordBoolean');
}

entity WDIRSCodeList : CodeList {
key code : String(30) @Common.Text : name @Common.TextArrangement: #TextFirst;
};

type WDIRS_CodeList_TYPE : Association to one WDIRSCodeList;

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