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 SAP Build Application to Open Device Camera

Configure the logic flow in your application to enable your device to open your camera on demand, whenever the user clicks the Scan button.

Overview

🎓 beginner 10 min. SAP Build AppsBeginnerMobileSAP Business Technology Platform

You will learn

  • โœ”How to add logic to a button in your mobile application
Daniel Wroblewski D Daniel Wroblewski November 25, 2024
Created by November 5, 2024
Contributors

Prerequisites

Steps

Intro

Logic flows are used to capture events in an application, such as a page loading or a user tapping on a button, and to execute actions โ€“ for example, to change the value of data or to open the device’s camera.

To create a barcode scanning app, you need to configure a logic flow that tells your application to open the camera device once the user taps the Scan button. To do this, we’ll show you how to add the logic to the button, then how to take advantage of SAP Build Apps’s QR and Barcode component.

Step 1 Add logic to button
โ€”

Open your app, and in the UI canvas, click the Scan button and then click Add Logic to BUTTON 1 (bottom right).

Open logic canvas
Open logic canvas

You should now see the logic canvas.

Logic canvas
Logic canvas

Step 2 Add scan QR/barcode component
+
Step 3 Add an alert element
+
Step 4 Bind elements
+
Step 5 Save and preview
+

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 logic to button 2. Add scan QR/barcode component 3. Add an alert element 4. Bind elements 5. Save and preview

Learn more →