This is the last task of the August Developer Challenge on ABAP Core Data Services. The responses we have seen so far is excellent and appreciate each one of you in taking time to complete the challenge. We have seen some good conversations about the task and to make it more interesting let’s add some colors to the Fiori app.
In Task 4, we will explore Criticality feature and display the data record in an Object Page.
In Task 3, you have used the annotations @Consumption.valueHelpDefinition:[..] and @ObjectModel.text.element:[..] to display the Text value for the Status key. A simple way to visualize the different Status is by adding an icon and semantic colors to the Status field. This can be achieved by Criticality feature. Since we already have the Status key (O,A,X) you need to map these values to the Criticality values. This table provides the Criticality values and its color visualization :
Task 4:
- Add the Criticality to the Status field to display the icon and color of the value should change according to the above table.
Hint: ‘A’ –> Positive
‘O’ –> Critical
‘X’ –> Negative
Hint: Use @ui.lineItem.criticality
- Create a Metadata extension file and add the required annotations to display the selected record in the Object page. The following fields should be available in the object page:
- Travel Id
- Description
- New field created in Task 2 – concat of Total_Price and Currency_Code
- Status field created in Task 3 along with Criticality representation
Follow the instructions carefully and share with us the screenshots of the items mentioned in the ‘Validation’ section of this discussion.
Please use this separate thread to ask your questions and discuss issues.
Validation :-
Please share screenshots after performing the following :
- Object page displaying the details of the selected record including Criticality representation of the Status field