@ui.dataPoint
In RAP (Restful ABAP Programming Model), the @ui.dataPoint annotation is used to define how individual fields should be presented in a UI, especially in SAP Fiori Elements applications
This annotation provides semantic metadata for a field such as:
It is commonly used in object pages, analytical cards, or list reports to visually highlight important values.
We will walk through how to dynamically control the color of a field (e.g., Fees) using a comparison field.
In your root CDS view, define a derived field based on some logic to act as the criticality field
In the metadata extension of the root view, annotate the field using @ui.dataPoint.
Key properties:
To expose this in Fiori:
🎯 Output :
The Fees field will be displayed:
Object page.
List Page:
Based on the comparison of the field value the Fees field color will be changed.
Green.
Red.
Orange.
Conclusion:
By leveraging @ui.dataPoint, developers can deliver data-rich, visually intuitive, Fiori-compliant UIs directly from the backend using CDS views—without needing to build custom front-end logic.
This enhances both developer productivity and end-user experience in Fiori Elements apps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |