SAP

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

Create a Customer Detail Page in an MDK App

Create a new page for displaying customer details in an MDK app.

Overview

You will learn

  • How to create a new page and add some controls to display customer information
  • How to navigate from one page to another page
Jitendra Kansal J Jitendra Kansal August 21, 2026
Created on October 4, 2022
Contributors

More from Jitendra Kansal

See all 34 tutorials by Jitendra Kansal →

Prerequisites

Steps

Intro

To enhance your MDK app with customer details information, you need to carry out the following tasks:

  • Create a new customer details page
  • Add some controls to the page to display information like id, name, email, phone, address
  • Create a new navigation action to the customer details page
  • Navigate from customer list page to details page
  • Deploy the project to SAP Mobile Services
  • Update the app with new changes

Customer Detail Page App Overview
Customer Detail Page App Overview

Step 1 Create the customer detail page

This page will show related details for a customer. In this page, you will add an Object Header control that is used to display information (like first name, last name, date of birth, email address & phone number) about the header of an object and Static Key Value control to display key value pair items like address, city, postal code & country.

  1. In your MDK project, Right-click the Pages folder | MDK: New Page | Section | Next.

    New Section Page Creation Menu
    New Section Page Creation Menu

  2. In the Base Information step, enter the Page Name Customers_Detail and click Finish to complete the page creation process.

    Customers Detail Page Name Entry
    Customers Detail Page Name Entry

  3. In the Properties pane, provide the below information under DesignTimeTarget.

    PropertyValue
    ServiceSelect com_sap_edm_sampleservice_v4.service from the dropdown
    EntitySetselect Customers from the dropdown

    DesignTimeTarget Service And EntitySet Properties
    DesignTimeTarget Service And EntitySet Properties

    DesignTimeTarget is a page level property similar to Target but it is only used for design time. This helps in validating the binding context of current page. For more details, see documentation.

  4. In the page editor, click on the white area to select it’s Action Bar, and set the Caption to Details.

    Action Bar Caption Set To Details
    Action Bar Caption Set To Details

  5. Next, you will add an Object Header container to display information like first name, last name, date of birth, email address & phone number.

    In the Layout Editor, expand the Controls | Static Container group, drag and drop the Object Header control onto the page area.

    Object Header Control Dropped On Page
    Object Header Control Dropped On Page

  6. Now, you will replace the default values of the control’s properties with the values from customer entity.

    In the Properties pane, click the link icon to open the Object Browser for the BodyText property.

    Double click the DateOfBirth property of the Customer entity to set it as the binding expression and click OK.

    BodyText Binding To DateOfBirth Property
    BodyText Binding To DateOfBirth Property

  7. Repeat the above steps binding below Properties:

    PropertyValue
    Description{CustomerID}
    DetailImageClick link icon to open the browser and bind it to customer SAP icon
    FootNote{EmailAddress}
    HeadlineText{LastName}
    StatusText{PhoneNumber}
    Subhead{FirstName}
    SubstatusTextRemove the default property

    DetailImage property is referencing to the SAP font icon.

    Page should look like below.

    Object Header With Bound Properties Result
    Object Header With Bound Properties Result

  8. In the main area of the page, let’s display some other details like; address, city, postal code, county.

    Drag and drop a Static Key Value container onto the page under the Object Header.

    Static Key Value Container Added To Page
    Static Key Value Container Added To Page

  9. Expand the Static Items section of the Controls palette and drag and drop a Key Value Item onto the Static Key Value container on the page.

    Key Value Item Dropped On Container
    Key Value Item Dropped On Container

  10. Repeat the process and drag three more Key Value Items onto the Static Key Value section so you have a total of four when you are done.

    Four Key Value Items In Static Container
    Four Key Value Items In Static Container

  11. Select the upper left Key Value Item and set the KeyName to Address.

    Upper Left Key Value Item KeyName Address
    Upper Left Key Value Item KeyName Address

  12. For this tutorial, you will set the value as a combined binding of house number and street. You can find more details about Target Path.

    You will start with first part of the binding for Address property.

    Click the link icon next to the Value field to display the Object Browser and double click HouseNumber to set it as the first part of the binding. Don’t click OK as you will set second part of the binding too.

    HouseNumber Binding In Object Browser
    HouseNumber Binding In Object Browser

    Now, set second part of the binding.

    The cursor will be at the end of binding in the Expression field. Add a space and then select Street property and click Insert.

    Click OK to set the binding.

    Street Property Binding Combined Expression
    Street Property Binding Combined Expression

    Be careful not to double click Street as that will replace the existing expression with just the Street property.

    Street should be selected from Customer entity.

  13. Repeat the process and set the upper right Key Value Item KeyName to City and bind the value to the City entity property.

  14. Repeat the process and set the lower left Key Value Item KeyName to Postal Code and bind the value to the PostalCode entity property.

  15. Repeat the process and set the lower right Key Value Item KeyName to Country and bind the value to the Country entity property.

    Be careful not to select City, Postal Code & City from Customer.Address (ESPM.Address) collection.

    The page design should look like as below screenshot.

    Customer Detail Page Final Design
    Customer Detail Page Final Design

Step 2 Navigate from Customer List to its Details page
+
Step 3 Deploy the Project
+
Step 4 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 4
1. Create the customer detail page 2. Navigate from Customer List to its Details page 3. Deploy the Project 4. Run the Project
Next