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

13 - Enable App to Filter Products

Add UI components and logic to enable filtering of the product list, as part of the SAP Build CodeJam.

Overview

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

You will learn

  • โœ”How to the filter a repeated component using the Visible property
Daniel Wroblewski D Daniel Wroblewski December 4, 2025
Created by January 2, 2025
Contributors

Prerequisites

Prerequisites

Steps

Intro

The very first thing you did in this CodeJam was to create a product page listing products from our CAP service.

But will want to be able to filter the list, and you will create 2 filters:

  • Free text search, using an input field. The app will then show any product whose name or description contains the string.

  • By category, using a dropdown field. The app will contain a dropdown of valid categories, and the user can select one; the app then displays only products in that category.

Note that this type of filtering is done in the app, after all data has been retrieved. There are other ways to filter the data on the server, generally using the OData filtering capabilities. That is beyond the scope of this tutorial.

Step 1 Add UI for filters
โ€”

  1. Go to the Home page page.

  2. In the Tree view, just below the Row component, add:

    • Input field
    • Dropdown field
    • List Divider

    Add components
    Add components

  3. For the input field, delete the text Label from the Label property. Leave it empty.

  4. For the dropdown field, change the Label text property to Filter by category.

    Dropdown
    Dropdown

  5. Click Save.

Step 2 Add variables
+
Step 3 Add logic to get list of categories
+
Step 4 Add logic to perform filtering
+
Step 5 Test app
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Add UI for filters 2. Add variables 3. Add logic to get list of categories 4. Add logic to perform filtering 5. Test app

Learn more →