SAP

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

Create a Slider Custom Control in an MDK App (Using Metadata Approach)

Build and run the mobile development kit client with slider custom control functionality for Android and iOS platforms.

Overview

You will learn

  • How to register and consume an Extension control in MDK Metadata
  • How to implement an extension by writing Native Code in TypeScript via Marshalling
Jitendra Kansal J Jitendra Kansal August 21, 2026
Created on August 26, 2023
Contributors

More from Jitendra Kansal

See all 34 tutorials by Jitendra Kansal →

Prerequisites

Prerequisites

Play Store QR Code
Android
App Store QR Code
iOS

(If you are connecting to AliCloud accounts, you will need to brand your custom MDK client by allowing custom domains.)

Steps

Intro

You may clone an existing metadata project from the MDK Tutorial GitHub repository and start directly with step 6 in this tutorial.


To extend the functionality, or customize the look and feel, and behavior of your client app, you can create extension controls other than the already existing MDK built-in controls by writing Native Code in TypeScript via Marshalling. NativeScript provide the ability to access platform-specific objects, class, and types in TypeScript / JavaScript via marshalling. NativeScript handles the conversion between JavaScript and native data types implicitly.

In this tutorial, you will create a Slider extension via NativeScript (in TypeScript language) which will be common for both device platforms.

Slider Extension Demo Preview
Slider Extension Demo Preview

Step 1 Create a New Project Using SAP Build

This step includes creating a mobile project in SAP Build Lobby.

  1. In the SAP Build Lobby, click Create > Create to start the creation process.

    SAP Build Lobby Create Button
    SAP Build Lobby Create Button

  2. Click the Application tile and choose Next.

    Application Tile Selection
    Application Tile Selection

  3. Select the Mobile category and choose Next.

    Mobile Category Selection
    Mobile Category Selection

  4. Select the Mobile Application to develop your mobile project in SAP Business Application Studio and choose Next.

    Mobile Application Option Selection
    Mobile Application Option Selection

  5. Enter the project name mdk_slider (used for this tutorial) , add a description (optional), and click Create.

    Project Name And Description Entry
    Project Name And Description Entry

    SAP Build recommends the dev space it deems most suitable, and it will automatically create a new one for you if you don’t already have one. If you have other dev spaces of the Mobile Application type, you can select between them. If you want to create a different dev space, go to the Dev Space Manager. See Working in the Dev Space Manager.

  6. Review the inputs under the Summary tab. If everything looks correct, click Create to proceed with creating your project.

    Project Summary Review Screen
    Project Summary Review Screen

  7. Your project is being created in the Project table of the lobby. The creation of the project may take a few moments. After the project has been created successfully, click the project to open it.

    Project Created In Lobby Table
    Project Created In Lobby Table

  8. The project opens in SAP Business Application Studio.

    SAP BAS Workspace Opened
    SAP BAS Workspace Opened

    When you open the SAP Business Application Studio for the first time, a consent window may appear asking for permission to track your usage. Please review and provide your consent accordingly before proceeding.

    SAP BAS Usage Consent Window
    SAP BAS Usage Consent Window

Step 2 Configure the Project Using Storyboard
+
Step 3 Register an Extension Control
+
Step 4 Consume Extension Control in MDK Metadata
+
Step 5 Implement Extension using metadata approach
+
Step 6 Deploy the Project
+
Step 7 Display the QR code for onboarding the Mobile app
+
Step 8 Run the Project
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 8
1. Create a New Project Using SAP Build 2. Configure the Project Using Storyboard 3. Register an Extension Control 4. Consume Extension Control in MDK Metadata 5. Implement Extension using metadata approach 6. Deploy the Project 7. Display the QR code for onboarding the Mobile app 8. Run the Project
Next