SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Refine the List Report with Additional UI Elements

Configure additional UI elements based on annotations and manifest settings to the list report with no coding effort, namely add columns and selection fields, enhance a Value Help and configure the application to load data automatically.

Overview

🎓 beginner 15 min. SAP FioriSAP Fiori ElementsSAP Fiori ToolsBeginnerSAP Business Application StudioSAP Cloud Application Programming ModelSAP Business Technology Platform

You will learn

  • How to add additional filter fields in the filter bar
  • How to enhance a Value Help for the filter field
  • How to add an additional column in the list report table
  • How to configure the list report to load data automatically In SAP Fiori elements applications, UI annotations are used to refine the user interface. All annotations are documented in the OData 4.0 Vocabularies. With SAP Fiori Tools - Application modeler, you don’t have to be an annotation expert, as the necessary UI annotations are automatically generated when you add or modify the UI elements for your application. You can easily navigate to the annotations behind the UI elements to review and/or manually update them in the code editor.

Prerequisites

Prerequisites

Steps

Step 1 Add filter field to the filter bar

In this step, you will learn how to add filters to the List Report page of your application using the Page Editor and see the auto generated annotation code in the local annotation file.

  1. From the Application Information page, click on the ListReport page.

    Open List Report Page
    Open List Report Page

    The Page Editor view opens up listing all the major page elements in the application outline structure.

  2. Press the + icon in the Filter Fields sub-node of the Filter Bar node on the outline. It becomes visible, once you hover over the sub-node.

    Add Filter Fields Icon
    Add Filter Fields Icon

  3. When prompted, choose category_code as Filter Field and press Add.

    Add Filter Fields Icon
    Add Filter Fields Icon

    The new filter field is added to the filter bar. The application preview (if started) is automatically refreshed to display it.

    New Filter Field
    New Filter Field

This is enabled by copying the UI.SelectionFields annotation to the local annotation file and updating it with category_code property in the background. You can press

Navigate to source code
Navigate to source code
(Navigate to source code) icon displayed in the Filter Fields sub-node on hover to see the updated annotation in the local annotation file.

CDS
SelectionFields : [
    incidentStatus_code,
    priority_code,
    category_code
],
Step 2 Enhance value help
+
Step 3 Configure the application to load data automatically
+
Step 4 Add column to the list report table
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Add filter field to the filter bar 2. Enhance value help 3. Configure the application to load data automatically 4. Add column to the list report table

Learn more →