FIORI App gegenereerd
This commit is contained in:
87
app/incidents/annotations.cds
Normal file
87
app/incidents/annotations.cds
Normal file
@@ -0,0 +1,87 @@
|
||||
using ProcessorService as service from '../../srv/services';
|
||||
annotate service.Incidents with @(
|
||||
UI.FieldGroup #GeneratedGroup : {
|
||||
$Type : 'UI.FieldGroupType',
|
||||
Data : [
|
||||
{
|
||||
$Type : 'UI.DataField',
|
||||
Label : 'customer_ID',
|
||||
Value : customer_ID,
|
||||
},
|
||||
{
|
||||
$Type : 'UI.DataField',
|
||||
Value : title,
|
||||
},
|
||||
{
|
||||
$Type : 'UI.DataField',
|
||||
Label : 'urgency_code',
|
||||
Value : urgency_code,
|
||||
},
|
||||
{
|
||||
$Type : 'UI.DataField',
|
||||
Label : 'status_code',
|
||||
Value : status_code,
|
||||
},
|
||||
],
|
||||
},
|
||||
UI.Facets : [
|
||||
{
|
||||
$Type : 'UI.ReferenceFacet',
|
||||
ID : 'GeneratedFacet1',
|
||||
Label : 'General Information',
|
||||
Target : '@UI.FieldGroup#GeneratedGroup',
|
||||
},
|
||||
],
|
||||
UI.LineItem : [
|
||||
{
|
||||
$Type : 'UI.DataField',
|
||||
Label : 'customer_ID',
|
||||
Value : customer_ID,
|
||||
},
|
||||
{
|
||||
$Type : 'UI.DataField',
|
||||
Value : title,
|
||||
},
|
||||
{
|
||||
$Type : 'UI.DataField',
|
||||
Label : 'urgency_code',
|
||||
Value : urgency_code,
|
||||
},
|
||||
{
|
||||
$Type : 'UI.DataField',
|
||||
Label : 'status_code',
|
||||
Value : status_code,
|
||||
},
|
||||
],
|
||||
);
|
||||
|
||||
annotate service.Incidents with {
|
||||
customer @Common.ValueList : {
|
||||
$Type : 'Common.ValueListType',
|
||||
CollectionPath : 'Customers',
|
||||
Parameters : [
|
||||
{
|
||||
$Type : 'Common.ValueListParameterInOut',
|
||||
LocalDataProperty : customer_ID,
|
||||
ValueListProperty : 'ID',
|
||||
},
|
||||
{
|
||||
$Type : 'Common.ValueListParameterDisplayOnly',
|
||||
ValueListProperty : 'firstName',
|
||||
},
|
||||
{
|
||||
$Type : 'Common.ValueListParameterDisplayOnly',
|
||||
ValueListProperty : 'lastName',
|
||||
},
|
||||
{
|
||||
$Type : 'Common.ValueListParameterDisplayOnly',
|
||||
ValueListProperty : 'name',
|
||||
},
|
||||
{
|
||||
$Type : 'Common.ValueListParameterDisplayOnly',
|
||||
ValueListProperty : 'email',
|
||||
},
|
||||
],
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user