annotation to make language value list a drop down.
type:#Fixed was not rendering the value list as a drop down. There was not UI validation for values entered. The added annotation does both these: UI validation and renders the a drop down list.
This commit is contained in:
@@ -87,7 +87,6 @@ annotate AdminService.Books.texts with @(
|
||||
annotate AdminService.Books.texts {
|
||||
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
|
||||
using { sap } from '@sap/cds/common';
|
||||
|
||||
Reference in New Issue
Block a user