Skip to content

Commit 4e4df54

Browse files
authored
Prevent Fiori ID dialog popup (#30)
1 parent b47b5bc commit 4e4df54

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

app/common.cds

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,14 @@ annotate my.Books with {
7171
annotate my.Authors with {
7272
ID @title:'{i18n>ID}' @UI.HiddenFilter;
7373
name @title:'{i18n>AuthorName}';
74-
}
74+
}
75+
76+
////////////////////////////////////////////////////////////////////////////
77+
//
78+
// Fiori requires generated IDs to be annotated with @Core.Computed
79+
//
80+
using { cuid } from '@sap/cds/common';
81+
82+
annotate cuid with {
83+
ID @Core.Computed
84+
}

0 commit comments

Comments
 (0)