Skip to content
Draft
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
16 changes: 15 additions & 1 deletion app/admin-books/fiori-service.cds
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,21 @@ annotate AdminService.Books.texts with {
// Add Value Help for Locales
annotate AdminService.Books.texts {
locale @(
ValueList.entity:'Languages', Common.ValueListWithFixedValues, //show as drop down, not a dialog
Common.ValueList : {
CollectionPath: 'Languages',
Parameters : [
{
$Type : 'Common.ValueListParameterDisplayOnly',
ValueListProperty: 'code',
},
{
$Type : 'Common.ValueListParameterInOut',
LocalDataProperty: locale,
ValueListProperty: 'code',
}
],
},
Common.ValueListWithFixedValues, //show as drop down, not a dialog
)
}
// In addition we need to expose Languages through AdminService as a target for ValueList
Expand Down
3 changes: 2 additions & 1 deletion app/common.cds
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ annotate my.Books with @(
Text: title,
TextArrangement : #TextOnly
};
author @ValueList.entity : 'Authors';
};

annotate my.Authors with @cds.odata.valuelist;

annotate common.Currencies with {
symbol @Common.Label : '{i18n>Currency}';
}
Expand Down