better value list
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user