Fiori Elements Part 3: Designing Apps with UI Annotations
Preview · a free account unlocks the full lesson
Learn how to configure List Report and Object Page floorplans in detail using @UI annotations, headers, facets, tables, and actions wired to RAP behavior, including runtime binding to OData V4.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Part 2 generated an app from a RAP service. This lesson designs what that app actually shows, using the @UI annotation vocabulary.
Design should always come before annotating: sketching with the business what the filters, table columns, object page header, sections and actions should look like, and mapping each element to an annotation before writing any code. All @UI annotations belong in the metadata extension of the projection, in layer #CORE.
List Report annotations cover the filter bar and the table. @UI.selectionField: [{ position: 10 }] places fields on the filter bar. @UI.lineItem: [{ position: 10, importance: #HIGH }] controls table columns, with importance driving which columns get hidden responsively on smaller screens. @UI.lineItem combined with type: #FOR_ACTION and dataAction: 'acceptTravel' adds an action button to the table toolbar. @UI.presentationVariant sets the default sort order and grouping.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.