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

14 - Implement Spinner for Product Details Page

Set up and use a spinner control to hide UI until all data is available to display, as part of the SAP CodeJam.

Overview

🎓 beginner 10 min. SAP BuildBeginnerSAP Build AppsSAP Build Process Automation

You will learn

  • โœ”How to set up and use a spinner control
  • โœ”How to delay displaying data until it is retrieved
Ian Thain I Ian Thain October 20, 2025
Created by January 2, 2025
Contributors

Prerequisites

Prerequisites

Steps

Intro

As you know your app has a product list and product details pages, but have you noticed while testing today that for a brief moment, after selecting a product, you can see empty or null fields on the product detail page?

Product Detail page
Product Detail page

In this exercise, you will enhance the Product details page by adding a spinner and only showing the fields once they are populated with the data.

There are 2 ways to show a spinner:

  • Using special flow functions to show and hide the entire page.
  • Using a spinner control that you position on the UI where you want to show a spinner, and control with a page variable.

You’ll do both.

Step 1 Add spinner variable
โ€”

  1. Go to the Product Details page.

  2. Toggle to Variables.

  3. Create a new page variable, and set its properties to the following:

    NameType
    Variable nameshowSpinner
    Variable value typeTrue/false
    Initial valueTrue

    Page Variables on Product Details
    Page Variables on Product Details

Step 2 Add spinner to UI
+
Step 3 Set visibility of UI
+
Step 4 Add logic to hide the spinner
+
Step 5 Test the app
+
Step 6 Use spinner flow functions
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 6
1. Add spinner variable 2. Add spinner to UI 3. Set visibility of UI 4. Add logic to hide the spinner 5. Test the app 6. Use spinner flow functions

Learn more →