better value list

This commit is contained in:
D065023
2021-06-16 16:40:18 +02:00
parent 785ecbda8f
commit 5141df8e0f
2 changed files with 1 additions and 21 deletions

View File

@@ -99,27 +99,6 @@ extend service AdminService {
entity Languages as projection on sap.common.Languages;
}
annotate AdminService.Books with {
supplier @(
Common: {
Label: '{i18n>Supplier}',
ValueList: {
Label: '{i18n>Supplier}',
CollectionPath: 'Suppliers',
Parameters: [
{ $Type: 'Common.ValueListParameterInOut',
LocalDataProperty: supplier_ID,
ValueListProperty: 'ID'
},
{ $Type: 'Common.ValueListParameterDisplayOnly',
ValueListProperty: 'name'
}
]
}
}
);
}
annotate AdminService.Suppliers with
@(Capabilities.SearchRestrictions : {
Searchable : false

View File

@@ -8,6 +8,7 @@ namespace sap.capire.bookshop;
actually interested in. This fosters both: (a) minimized network traffic as
well as (b) options to dynamically add extension fields by SaaS tenants.
*/
@cds.odata.valuelist
entity Suppliers as projection on S4.A_BusinessPartner {
key BusinessPartner as ID,
BusinessPartnerFullName as name,