From 7e2d4732b97e96265d416c83efdfa1f466f4606f Mon Sep 17 00:00:00 2001 From: Rishi Kunnath <82925475+rishikunnath2747@users.noreply.github.com> Date: Wed, 21 May 2025 22:26:59 +0530 Subject: [PATCH] update cds file --- .../demoapp/srv/attachment-extension.cds | 35 +++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/cap-notebook/demoapp/srv/attachment-extension.cds b/cap-notebook/demoapp/srv/attachment-extension.cds index c07495a3..ff549738 100644 --- a/cap-notebook/demoapp/srv/attachment-extension.cds +++ b/cap-notebook/demoapp/srv/attachment-extension.cds @@ -13,12 +13,35 @@ entity Statuses @cds.autoexpose @readonly { extend Attachments with { statusText : Association to Statuses on statusText.code = $self.status; - abc___myId1 : String @SDM.Attachments.AdditionalProperty @(title: '{i18n>id1}'); - abc___myId2 : String @SDM.Attachments.AdditionalProperty @(title: '{i18n>id2}'); - Working___DocumentInfoRecordString : String @SDM.Attachments.AdditionalProperty @(title: '{i18n>DocumentInfoRecordString}'); - Working___DocumentInfoRecordInt : Integer @SDM.Attachments.AdditionalProperty @(title: '{i18n>DocumentInfoRecordInt}'); - Working___DocumentInfoRecordBoolean : Boolean @SDM.Attachments.AdditionalProperty @(title: '{i18n>DocumentInfoRecordBoolean}'); - Working___DocumentInfoRecordDate : DateTime @SDM.Attachments.AdditionalProperty @(title: '{i18n>DocumentInfoRecordDate}'); + Working___DocumentInfoRecordString : String + @SDM.Attachments.AdditionalProperty: { + name: 'Working:DocumentInfoRecordString' + } + @(title: 'DocumentInfoRecordString'); + Working___DocumentInfoRecordInt : Integer + @SDM.Attachments.AdditionalProperty: { + name: 'Working:DocumentInfoRecordInt' + }; + abc___myId1 : String + @SDM.Attachments.AdditionalProperty: { + name: 'abc:myId1' + } + @(title: 'id1'); + abc___myId2 : String + @SDM.Attachments.AdditionalProperty: { + name: 'abc:myId2' + } + @(title: 'id2'); + Working___DocumentInfoRecordDate : DateTime + @SDM.Attachments.AdditionalProperty: { + name: 'Working:DocumentInfoRecordDate' + } + @(title: 'DocumentInfoRecordDate'); + Working___DocumentInfoRecordBoolean : Boolean + @SDM.Attachments.AdditionalProperty: { + name: 'Working:DocumentInfoRecordBoolean' + } + @(title: 'DocumentInfoRecordBoolean'); } annotate Books.attachments with {