From 98a3fdb1a1b42bd3e62df3aca6e9aad4e79aa52e Mon Sep 17 00:00:00 2001 From: Rishi Kunnath <82925475+rishikunnath2747@users.noreply.github.com> Date: Fri, 30 May 2025 11:43:29 +0530 Subject: [PATCH] fix for dropwdown --- cap-notebook/demoapp/app/admin-books/fiori-service.cds | 4 ++++ cap-notebook/demoapp/srv/attachment-extension.cds | 8 +------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/cap-notebook/demoapp/app/admin-books/fiori-service.cds b/cap-notebook/demoapp/app/admin-books/fiori-service.cds index f2161855..d8cd8382 100644 --- a/cap-notebook/demoapp/app/admin-books/fiori-service.cds +++ b/cap-notebook/demoapp/app/admin-books/fiori-service.cds @@ -127,3 +127,7 @@ annotate AdminService.Books with { annotate AdminService.Books with { genre @Common.ValueListWithFixedValues; } + +annotate AdminService.Books.attachments with { + customProperty1 @Common.ValueListWithFixedValues; +} diff --git a/cap-notebook/demoapp/srv/attachment-extension.cds b/cap-notebook/demoapp/srv/attachment-extension.cds index c9cd1e2e..ff9685a1 100644 --- a/cap-notebook/demoapp/srv/attachment-extension.cds +++ b/cap-notebook/demoapp/srv/attachment-extension.cds @@ -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' } @@ -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 @(