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

Configure a List Report Page Using SAP Fiori Tools

Use SAP Fiori tools to provide additional functionality to your List Report Object Page app.

Overview

🎓 beginner 40 min. SAP Fiori ToolsBeginnerSAP FioriSapui5OdataUser Interface

You will learn

  • โœ”How to use Guided Development in SAP Fiori tools to add functionality
  • โœ”How to use the Service Modeler to visualize OData services and the associated annotations in your apps
  • โœ”How to use XML Annotation Language Server to define annotations in the code editor
Unknown U Unknown June 20, 2024
Created by June 18, 2020
Contributors

Prerequisites

Prerequisites

Steps

Step 1 Enable multiple selection in tables and table auto load
โ€”

When developing an application, you may know that end users require certain functionality but not be sure how to implement it. The Guided Development extension provides access to how-to guides and tutorials that can help you add a feature to your SAP Fiori elements application.

You can read through the steps required to implement a feature and then either apply the generated code to make the changes to the project or copy the code snippet to your clipboard and make the changes yourself. To begin this tutorial, you will implement multiple selection for the table so that your end users can select multiple rows in the list at once. You will then enable the auto load setting for users so that they do not have to press Go to view the items in the list report. This saves them a step and streamlines the experience for newer users who may not be as familiar with how to interact with a list report.

  1. To begin, open the Command Palette using CMD/CTRL + Shift + P and type: Guided Development. Select Fiori: Open Guided Development.

    VSCode Open Guided Development
    VSCode Open Guided Development

    If this is your first project, you should now see Guided Development with a list of guides grouped together by the page type. If you have other projects available in Visual Studio Code, select your tutorial project to access Guided Development.

  2. Using the search box at the top right of the screen, type multi to filter the guide list. Under the List Report Page section, click the guide title Configure multiple selection in tables to open the guide.

    Guided Development Multiple Selection
    Guided Development Multiple Selection

    To understand what the feature does, you can read the description. To implement this functionality, you are going to use the code snippet generated by Guided Development. Press Start Guide to begin using the guide.

    The Start Guide button is only enabled in in Wizard Mode. If Wizard Mode is disabled (via the Settings button), you can simply scroll down to see the rest of the guide content.

  3. To generate the code snippet, select ListReport_SEPMRA_C_PD_Product for the Page parameter and set the Toggle Multi Select parameter to True. Click Insert Snippet.

    Guided Development will go to the respective page configuration file and apply the changes.

  4. The ListReport_SEPMRA_C_PD_product.json will open to the side, with the new code inserted and highlighted. The changes are saved automatically. You can close this tab to free up screen space.

    The app preview will refresh and display the multi-select boxes.

  5. To enable auto load functionality for the table, return to the search box in the Guided Development toolbar. If you have the Configure multiple selection in tables guide still open, it will be to the left of the open guide, above the list of guides. If you have closed it, it will be in its original position. Click the Clear button in the search bar (X) to clear the previous search and then enter auto. Open the Enable table to auto load data guide under the List Report Page section. Just like the previous step with the Configure multiple selection in tables guide, press Start Guide to navigate past the description and view the code snippet, if required.

    The Start Guide button is only enabled in in Wizard Mode. If Wizard Mode is disabled (via the Settings button), you can simply scroll down to see the rest of the guide content.

  6. As with the last guide, you may read the guide and step descriptions to get a better understanding of what the Enable table to auto load data guide does. When you are ready to apply the setting, select always under the Mode dropdown. This will ensure that the table will automatically load the data, even when filters aren’t set. Click Insert Snippet to make the change to your project. If you closed the tab with the page configuration file previously, it will reopen with the new snippet highlighted and the changes saved. Your app preview will also refresh and should look something like this without having to press Go:

Preview Guided Development Changes
Preview Guided Development Changes

At this point, you are done with Guided Development. You can close the ListReport_SEPMRA_C_PD_product.json tab, as well as the Guided Development tab: Guided Development - myfioriapp.

Step 2 Copy backend annotation visually to local annotation file
+
Step 3 Edit UI.SelectionFields in code editor
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 3
1. Enable multiple selection in tables and table auto load 2. Copy backend annotation visually to local annotation file 3. Edit UI.SelectionFields in code editor

Learn more →