Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Task 4 - Implement Criticality feature and create an Object page

Shilpa_Shankar
Developer Advocate
Developer Advocate
9,198

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 :

Criticality.pngTask 4:

  1. 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
  2. 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:
  1. Travel Id
  2. Description
  3. New field created in Task 2 – concat of Total_Price and Currency_Code
  4. Status field created in Task 3 along with Criticality representation

Reference link: https://learning.sap.com/learning-journeys/develop-sapui5-applications/using-basic-annotations-for-o...

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 :

  1. Object page displaying the details of the selected record including Criticality representation of the Status field

 

 

115 REPLIES 115

adrianng
Explorer
2,776

Hi everyone,
Here is my screenshot 

adrianng_0-1724934385932.png

I really like CDS, i hope i can continue working with this technology.
If anyone has courses or material to study and can share them, I would appreciate it. I am currently following the videos on the SAP YouTube channel.
Best regards.

SebSchlegel
Explorer
2,279

Here my solution for week 4:

SebSchlegel_0-1724937807982.png

Thank you for this great challenge! Had a lot of fun with these exercises. 

Greetings

Sebastian

styles
Participant
2,247

Vanakam Developer Advocates!
Here is my Preview for Task 4
image.pngWarm Regards,
Styles

"Programming is not about what you know, it is about what you can solve"

YogSSohanee
Participant
2,250

My submission for Task 4 - Object page displaying the details of the selected record including Criticality representation of the Status field. 

YogSSohanee_0-1724946588307.png

 

2,206

Hi @Shilpa_Shankar 
Task-4: Object page with a criticality representation of the Status field.

Chandana_Pamarthi_0-1724950684157.png

Regards,
Chandana.

 

Alpesa1990
Participant
2,208

My submission for this task.

Alpesa1990_0-1724951206838.png

Congrats for the challenge!

vgirish22
Discoverer
2,202

Hi,

Object page displaying the details of the selected record.

vgirish22_1-1724954884465.png

 

vgirish22_0-1724954843393.png

 

RLi2340
Discoverer

vazhz
Explorer
2,142

Hello Learners,

Here's is the solution for task 4 along with the list and object page. Both has the cardinality included in it. 😎

List Page with three different cardinalities.

vazhz_0-1724969078656.png

Object Page with cardinality

vazhz_1-1724969116641.png

Thank you @Shilpa_Shankar and @sheenamk for a challenging month. Also, people who are completing the tasks thanks for taking up this challenge and making this more understandable with separate discussion thread.

Ajay19
Explorer
2,082

Hi @Shilpa_Shankar ,

Here is my Week 4 validation screenshot.

Ajay19_0-1725000673472.png

Thanks for the challenge. I have learnt a lot from this and from the fellow developers.

Regards

Ajay

pankajgupta1992
Explorer
2,083

Hello.

Thanks for organizing this exciting developer challenge.

This is my solution to task 4 .

Object page displaying the details of the selected record including Criticality representation of the Status field.

pankajgupta1992_0-1725001710714.png

Thanks & regards,

Pankaj Gupta.

Nkrish
Contributor
2,058

Hi , 

List page with Criticality 

Nkrish_0-1725004141145.png

 

 

 

 

 

 

Object page - Criticality

Nkrish_1-1725004220264.png

Nkrish_2-1725004703987.png

Thank you 

gphadnis2000
Participant
2,011

My submission for Task 4

 

gphadnis2000_0-1725014396084.png

 

Added same criticality on main page also

 

gphadnis2000_2-1725014564796.png

 

 

gphadnis2000_3-1725014584765.png

 

 

SubaR
Explorer
1,947

Here's the task 4. Got it done after work time today ! Good learning of facets!

SubaR_0-1725026295997.png

Regards.

Suba

 

jonwalnikhilesh
Participant
1,859

Here is my solution for Week 4

1. List Page with Criticality

week4.png

2.Object page displaying the details of Travel

Week4-1.png

Thanks,

Nikhilesh

JerryW
Explorer
1,780

Hello - my submission for week 4

JerryW_1-1725064330029.png

Thank you for organizing this!

Bharath369
Explorer
0 Kudos
1,727

hi @Shilpa_Shankar , it is giving me only Travel status as O. I am not getting the Overallstatus text anlong with the criticality indicator.

Bharath369_0-1725230456322.png

below is my metadata extension code. please let me know if I am missing anything.

Bharath369_1-1725230553128.png

Thanks,

Bharath

 

 

0 Kudos
827

Hi Bharath,

To display the text instead of key, you need to use annotation ValueHelpDefinition to the Status key field (O,A,X).

To get the criticality use UI.Identification to the Status field which would display the text. You can hide the Status text field.

Eyis
Explorer
1,632

Hello,

Submitting task 4 :Object page displaying the details of the selected record including Criticality representation of the Status field

Eyis_0-1725242312953.png

 

MatLakaemper
Participant
1,086

Hi,

here my Submission,

regards, Matthias Lakämper

----------- List-View --------------------

MatLakaemper_2-1725250765702.png

 

------------ Detail - View ------------------------------

MatLakaemper_1-1725250687609.png

 

 

Ziynatullo
Explorer

UsamaKhan
Explorer
1,081

CB9980002351

Object Page:

UsamaKhan_0-1725252937029.png

Thanks and regards,

Usama Khan

spassaro
Participant
1,081

Good morning.

My submission for this last task:

spassaro_1-1725253855355.png

 

 

spassaro_0-1725253791745.png

 

Vara_reddy
Explorer
1,058

Hi Team,

Below is the Task-4 screenshot, Could not submit on Aug31 due to Site maintanance. Don't mind late submission.

Vara_reddy_0-1725255567580.pngVara_reddy_1-1725255586522.pngVara_reddy_2-1725255612277.png

Thanks

 

Sarath_Kumar
Explorer
1,053

Hi @Shilpa_Shankar ,

Task 4 Completed!

Screenshot:

  1. Object page displaying the details of the selected record including Criticality representation of the Status field

Sarath_Kumar_2-1725257312877.png