Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions _i18n/i18n.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ Message=Message

#XFLD,120: Label for a column title
Date=Date

#XFLD,120: Label for a column title
Title=Title
81 changes: 52 additions & 29 deletions app/incidents/annotations.cds
Original file line number Diff line number Diff line change
Expand Up @@ -32,35 +32,36 @@ annotate service.Incidents with @(
Label : '{i18n>Details}',
ID : 'i18nDetails',
Target : '@UI.FieldGroup#i18nDetails',
},
{
$Type : 'UI.ReferenceFacet',
Label : '{i18n>Conversation}',
ID : 'i18nConversation',
Target : 'conversation/@UI.LineItem#i18nConversation',
},],
},
{
$Type : 'UI.ReferenceFacet',
Label : '{i18n>Conversation}',
ID : 'i18nConversation',
Target : 'conversation/@UI.LineItem#i18nConversation',
},
],
UI.LineItem : [
{
$Type : 'UI.DataField',
Value : title,
Value : ID,
Label : '{i18n>Title}',
},
{
$Type : 'UI.DataField',
Value : customer.name,
Label : '{i18n>Customer}',
Value : customer_ID,
},
{
$Type : 'UI.DataField',
Value : status.descr,
Label : '{i18n>Status}',
Value : status_code,
Criticality : status.criticality,
},
{
$Type : 'UI.DataField',
Value : urgency.descr,
Label : '{i18n>Urgency}',
Value : urgency_code,
},
],
);
Expand Down Expand Up @@ -99,11 +100,41 @@ annotate service.Incidents with {
annotate service.Incidents with {
urgency @Common.Label : '{i18n>Urgency}'
};
annotate service.Incidents with {
status @Common.ValueListWithFixedValues : true
};
annotate service.Status with {
code @Common.Text : {
$value : descr,
![@UI.TextArrangement] : #TextOnly,
}
};
annotate service.Incidents with {
urgency @Common.ValueListWithFixedValues : true
};
annotate service.Urgency with {
code @Common.Text : descr
code @Common.Text : {
$value : descr,
![@UI.TextArrangement] : #TextOnly,
}
};
annotate service.Incidents with {
status @Common.Text : {
$value : status.descr,
![@UI.TextArrangement] : #TextOnly,
}
};
annotate service.Incidents with {
urgency @Common.Text : {
$value : urgency.descr,
![@UI.TextArrangement] : #TextOnly,
}
};
annotate service.Incidents with {
customer @Common.Text : {
$value : customer.name,
![@UI.TextArrangement] : #TextOnly,
}
};
annotate service.Incidents with @(
UI.HeaderInfo : {
Expand Down Expand Up @@ -133,27 +164,9 @@ annotate service.Incidents with @(
},],
}
);
annotate service.Incidents with {
customer @Common.Text : {
$value : customer.name,
![@UI.TextArrangement] : #TextOnly,
}
};
annotate service.Incidents with {
customer @Common.ValueListWithFixedValues : false
};
annotate service.Incidents with {
status @Common.Text : status.descr
};
annotate service.Incidents with {
status @Common.ValueListWithFixedValues : true
};
annotate service.Status with {
code @Common.Text : descr
};
annotate service.Incidents with {
urgency @Common.Text : urgency.descr
};
annotate service.Incidents.conversation with @(
UI.LineItem #i18nConversation : [
{
Expand All @@ -170,3 +183,13 @@ annotate service.Incidents.conversation with @(
Label : '{i18n>Date}',
},]
);

annotate service.Incidents with @Common.SemanticKey: [ID]{
ID @Core.Computed
};
annotate service.Incidents with {
ID @Common.Text : {
$value : title,
![@UI.TextArrangement] : #TextOnly,
}
};