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:
dinurp
2021-11-10 11:18:41 +04:00
committed by GitHub
parent e89e012eba
commit e838f380c5

View File

@@ -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';