Annotation for value list for languages for locale
This commit is contained in:
@@ -85,7 +85,9 @@ annotate AdminService.Books.texts with @(
|
|||||||
|
|
||||||
// Add Value Help for Locales
|
// Add Value Help for Locales
|
||||||
annotate AdminService.Books.texts {
|
annotate AdminService.Books.texts {
|
||||||
locale @ValueList:{entity:'Languages',type:#fixed}
|
locale @ValueList:{entity:'Languages'};
|
||||||
|
locale @Common.ValueListWithFixedValues:true; //show as drop down, not a dialog
|
||||||
|
locale @Common.ValueListForValidation:''; // validate against this list
|
||||||
}
|
}
|
||||||
// In addition we need to expose Languages through AdminService as a target for ValueList
|
// In addition we need to expose Languages through AdminService as a target for ValueList
|
||||||
using { sap } from '@sap/cds/common';
|
using { sap } from '@sap/cds/common';
|
||||||
|
|||||||
Reference in New Issue
Block a user