UI Part 1
This commit is contained in:
12
_i18n/i18n.properties
Normal file
12
_i18n/i18n.properties
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
#XFLD,120: Label for a filter field
|
||||||
|
Urgency=Urgency
|
||||||
|
|
||||||
|
#XFLD,120: Label for a filter field
|
||||||
|
Status=Status
|
||||||
|
|
||||||
|
#XFLD,120: Label for a column title
|
||||||
|
Title=Title
|
||||||
|
|
||||||
|
#XFLD,120: Label for a column title
|
||||||
|
Customer=Customer
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
using ProcessorService as service from '../../srv/services';
|
using ProcessorService as service from '../../srv/services';
|
||||||
|
using from '../../db/schema';
|
||||||
|
|
||||||
annotate service.Incidents with @(
|
annotate service.Incidents with @(
|
||||||
UI.FieldGroup #GeneratedGroup : {
|
UI.FieldGroup #GeneratedGroup : {
|
||||||
$Type : 'UI.FieldGroupType',
|
$Type : 'UI.FieldGroupType',
|
||||||
@@ -33,25 +35,31 @@ annotate service.Incidents with @(
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
UI.LineItem : [
|
UI.LineItem : [
|
||||||
{
|
|
||||||
$Type : 'UI.DataField',
|
|
||||||
Label : 'customer_ID',
|
|
||||||
Value : customer_ID,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
$Type : 'UI.DataField',
|
$Type : 'UI.DataField',
|
||||||
Value : title,
|
Value : title,
|
||||||
|
Label : '{i18n>Title}',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
$Type : 'UI.DataField',
|
$Type : 'UI.DataField',
|
||||||
Label : 'urgency_code',
|
Value : customer.name,
|
||||||
Value : urgency_code,
|
Label : '{i18n>Customer}',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
$Type : 'UI.DataField',
|
$Type : 'UI.DataField',
|
||||||
Label : 'status_code',
|
Value : status.descr,
|
||||||
Value : status_code,
|
Label : '{i18n>Status}',
|
||||||
|
Criticality : status.criticality,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
$Type : 'UI.DataField',
|
||||||
|
Value : urgency.descr,
|
||||||
|
Label : '{i18n>Urgency}',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
UI.SelectionFields : [
|
||||||
|
status_code,
|
||||||
|
urgency_code,
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -85,3 +93,25 @@ annotate service.Incidents with {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
annotate service.Incidents with {
|
||||||
|
status @(
|
||||||
|
Common.Label : '{i18n>Status}',
|
||||||
|
Common.ValueListWithFixedValues : true,
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
annotate service.Incidents with {
|
||||||
|
urgency @(
|
||||||
|
Common.Label : '{i18n>Urgency}',
|
||||||
|
Common.ValueListWithFixedValues : true,
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
annotate service.Urgency with {
|
||||||
|
code @Common.Text : descr
|
||||||
|
};
|
||||||
|
|
||||||
|
annotate service.Status with {
|
||||||
|
code @Common.Text : descr
|
||||||
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -116,7 +116,8 @@
|
|||||||
"type": "ResponsiveTable"
|
"type": "ResponsiveTable"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"initialLoad": "Enabled"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user