---
parser: v2
auto_validation: true
primary_tag: software-product>mobile-development-kit-client
tags: [ software-product>mobile-development-kit-client, tutorial>beginner, operating-system>ios, operating-system>android, topic>mobile, software-product>sap-business-technology-platform, software-product>sap-mobile-services, software-product>sap-build-code, software-product>sap-build, software-product>sap-business-application-studio ]
time: 30
author_name: Jitendra Kansal
author_profile: https://github.com/jitendrakansal
slug: cp-mobile-dev-kit-customer-order
canonical_url: https://developers.sap.com/tutorials/cp-mobile-dev-kit-customer-order
---

# Extend an MDK App with Customer Orders
<!-- description --> Display a customer order list and its details.

## You will learn
  - How to enhance customer details with its order information
  - How to create a new page for displaying the order details

## Intro
You may clone an existing metadata project from the [MDK Tutorial GitHub repository](https://github.com/SAP-samples/cloud-mdk-tutorial-samples/tree/main/3-Enhance-Your-First-MDK-App-with-Additional-Functionalities/3-cp-mobile-dev-kit-upload-logs) to start with this tutorial.

---

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

*  Create a new order list page
*  Create a new order details page
*  Create a new navigation action to the new order details page
*  Write a JavaScript logic to calculate total number of orders for a customer
*  Display top 5 orders in customer details page
*  Add a header control to the orders grid of the customer detail page to display a text label
*  Add a footer control to the orders grid of customer detail page to show total order count

![Customer Orders Feature App Overview](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.0.gif)

### Create a new order list page


This page will display customer orders list, you will add an **Object Table** control that is used to display information (like Sales order ID, order creation date, gross amount and life cycle status name) about an object.

>You can find more details about [available controls in section page](https://help.sap.com/doc/69c2ce3e50454264acf9cafe6c6e442c/Latest/en-US/docs-en/reference/schemadoc/Page/SectionedTable/SectionedTable.schema.html).

1. In your MDK project, right-click the **Pages** | **MDK: New Page** | select **Section** | **Next**.

    ![New Section Page Creation Dialog](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.1.png)

    >You can find more details about [section pages](https://help.sap.com/doc/f53c64b93e5140918d676b927a3cd65b/Cloud/en-US/docs-en/guides/features/fiori-ui/mdk/section-page.html).

2. In the **Base Information** step, enter the page **Name** `Customers_Orders` and click **Finish** to complete the page creation process. 

    ![Customers Orders Page Name Entry](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.2.png)

3. Once the page opens in the page editor, click on the white area to select it's Action Bar, and set the **Caption** to **Customer Orders**.

    ![Action Bar Caption Set To Customer Orders](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.3.png)

4. Next, add an **Object Table** control to display information like sales order ID, order creation date, gross amount and life cycle status name.

    In the Layout Editor, expand the **Controls** | **Data Bound Container** group, drag and drop the **Object Table** control onto the page area.

    ![Object Table Control Drag And Drop](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.4.gif)


5. In the **Properties** pane, provide the below information:

    | Property | Value |
    |----|----|
    | `Service`| Select `com_sap_edm_sampleservice_v4.service` from the dropdown |
    | `EntitySet` | Select `SalesOrderHeaders` from the dropdown |
    | `QueryOptions`| `$filter=CustomerID eq {CustomerID}&$orderby=CreatedAt desc` |

    ![Object Table Service And EntitySet Properties](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.5.png)

    >The query expression will filter the top five order entries for a given customer ID, returning them in descending order when sorted by the order creation date property.

    >![Query Options Filter Expression Result](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.6.gif)

6. Now, start binding Object Table properties with `SalesOrderHeaders` entity set properties.

    In the **Appearance** section of the **Properties** pane, provide the below information:

    | Property | Value |
    |----|----|
    | `Description` | Remove the default value and leave it blank |
    | `Footnote` | Remove the default value and leave it blank |
    | `PreserveIconStackSpacing`| `false` |
    | `ProgressIndicator` | Remove the default value and leave it blank |
    | `StatusText`| `$(C,{GrossAmount},{CurrencyCode},'',{minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:true})` |
    | `Subhead` | bind it to `{CustomerID}` |
    | `SubstatusText`| Remove the default value and leave it blank |
    | `Tags` | Click the `item0` and then click the trash icon to delete the default item |
    | `Title`| `$(D,{CreatedAt},'','',{format:'medium'})` |

    ![Object Table Appearance Properties Bound](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.7.png)

    >`$(C,{GrossAmount},{CurrencyCode},'',{minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:true})` is an expression of how to format currency value, end result would be like €200.44. By default it will be formatted to the device's locale setting. More details on Currency Formatter is available in [documentation](https://help.sap.com/doc/f53c64b93e5140918d676b927a3cd65b/Cloud/en-US/docs-en/guides/getting-started/mdk/development/property-binding/i18n-formatter.html#currency-formatter).

    >![Currency Formatter Expression Preview](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.9.gif)

    >`$(D,{CreatedAt},'','',{format:'medium'})` is an expression of how to format a date, end result would be like June 20, 2020. By default it will be formatted to the device's locale setting. More details on Date Formatter is available in the [documentation](https://help.sap.com/doc/f53c64b93e5140918d676b927a3cd65b/Cloud/en-US/docs-en/guides/getting-started/mdk/development/property-binding/i18n-formatter.html#date-formatter).

    >![Date Formatter Expression Preview](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.8.gif)

7. In the **Search** section of the **Properties** pane, change both the **Search Enabled** property and **Barcode Scanner** property to **`true`**.

    ![Search Enabled And Barcode Scanner True](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.10.png)

8. In the **Behavior** section of the **Properties** pane, select `DisclosureIndicator` to **`AccessoryType`** property.

    ![AccessoryType Set To DisclosureIndicator](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.11.png)

9. In the **Avatar Grid** section of the **Properties** pane, remove the default Avatar by selecting the `item0` and then clicking the trash icon to delete the default item.

    ![Avatar Grid Default Item Removed](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.12.png)    

10. In the **Avatar Stack** section of the **Properties** pane, remove the default Avatar by selecting the `item0` and then clicking the trash icon to delete the default item.

    ![Avatar Stack Default Item Removed](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.13.png)  

12. In the `EmptySection` of the **Properties** pane, provide **`No Orders Found`** for the **Caption** property.

    ![EmptySection Caption No Orders Found](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.14.png)


### Create a new order details page

This page will show related details for an order. 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** | **MDK: New Page** | select **Section** | **Next**.

    ![New Section Page Creation Dialog](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.1.png)

2. Enter the Page Name as `SalesOrders_Details` and click **Finish** to complete the page creation process.

    ![SalesOrders Details Page Name Entry](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-2.1.png)

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

    | Property | Value |
    |----|----|
    | `Service` | Select `com_sap_edm_sampleservice_v4.service` from the dropdown |
    | `EntitySet` | select `SalesOrderHeaders` from the dropdown|

    ![DesignTimeTarget Service EntitySet Configuration](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-2.1.1.png)

    >`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](https://help.sap.com/doc/f53c64b93e5140918d676b927a3cd65b/Cloud/en-US/docs-en/guides/getting-started/mdk/development/create-pages.html#page-editor).

4. Once the page opens in the page editor, click on the white area to select it's Action Bar, and set the **Caption** to **Order Details**.

    ![Action Bar Caption Set To Order Details](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-2.2.png)

5. Next, you will add a **Static Key Value** container and its item **Key Value Item** to display information like sales order id, life cycle status & date of order creation name.

    >**Static Key Value** is a container that can display one or more key value pair items on a section page. In this container, you can include a Key Value Item, a simple key value cell that displays a label and a text pair. You can find more details [here](https://help.sap.com/doc/69c2ce3e50454264acf9cafe6c6e442c/Latest/en-US/docs-en/reference/schemadoc/Page/SectionedTable/Container/KeyValue.schema.html) about this container.

    In the Layout Editor, expand the **Controls** | **Static Container** section, drag and drop the **Static Key Value** control onto the page area.

    ![Static Key Value Control Added To Page](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-2.3.png)

6. Now, add key value item to this container. In the Layout Editor, expand the **Controls** | **Static Items** section, drag and drop the **Key Value Item** control onto the page area.

    ![Key Value Item Control Added To Page](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-2.4.png)

    Provide the below information:

    | Property | Value |
    |----|----|
    | `KeyName`| `Order Number` |
    | `Value` | bind it to `{SalesOrderID}` |

    ![Order Number Key Value Item Binding](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-2.5.png)

    >Make sure to select values for the mentioned properties only from `SalesOrderHeader` entity. You may find similar values from other entities.

7. Repeat the above step by adding 5 more **Key Value Item** on the page.

    ![Five Additional Key Value Items Added](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-2.6.png)

    Provide the below information:

    | Property | Value |
    |----|----|
    | `KeyName`| `Status` |
    | `Value` | bind it to `{LifeCycleStatusName}` |

    | Property | Value |
    |----|----|
    | `KeyName`| `Created At` |
    | `Value` | `$(D,{CreatedAt},'','',{format:'medium'})` |

    | Property | Value |
    |----|----|
    | `KeyName`| `Net Amount` |
    | `Value` | `$(C,{NetAmount},{CurrencyCode},'',{minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:true})` |

    | Property | Value |
    |----|----|
    | `KeyName`| `Tax Amount` |
    | `Value` | `$(C,{TaxAmount},{CurrencyCode},'',{minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:true})` |

    | Property | Value |
    |----|----|
    | `KeyName`| `Total Amount` |
    | `Value` | `$(C,{GrossAmount},{CurrencyCode},'',{minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:true})` |

    You should have final binding for all key value items as below:

    ![All Key Value Items Final Binding](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-2.7.png)


### Navigate from Customer Order Page to Order Details Page

When a user taps an order on the Customer Orders page, it should navigate to the related details page. 
    
The MDK template generates some generic actions, such as `GenericNavigation.action`, that can be reused at many places in your project and can be overridden with specific information. Of course, you can also create a new action, as you have done in previous tutorials. 

1. In the `Customers_Orders.page`, select the Object Table control, navigate to the **Events** tab. Click the dotted icon for the `OnPress` property and select the `Object Browser`.

    ![OnPress Event Object Browser Selection](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-3.1.png)

2. Select `GenericNavigation.action` and click **OK**. 

    ![GenericNavigation Action Selected](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-3.2.png)   

3. The `OnPress` event has been bound to the `GenericNavigation.action`. You will now override its properties. Click the dotted icon for the `OnPress` property and select `Overrides`.

    ![OnPress Property Overrides Option](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-3.3.png)   

4. In the **Override Action Properties** window, provide the below information and click **OK** to complete the action override process.

    | Field | Value |
    |----|----|
    | `PageToOpen` | Select `SalesOrders_Details.page` from the dropdown |

    ![Override Action PageToOpen SalesOrders Details](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-3.4.png)

    >You can find more details about [Override Action](https://help.sap.com/doc/3642933ef2e1478fb1578ef2acba4ae9/Latest/en-US/reference/schemadoc/definitions/OverrideAction.schema.html) in documentation.

6. You will notice that the `Overrides` option under the `OnPress` event is now highlighted, indicating that the bound action is overridden. You can also view the overridden details in the page code editor by right-clicking on the `Customers_Orders.page` and opening it with text Editor.

    ![OnPress Overrides Option Highlighted](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-3.5.png)

### Display top 5 orders in customer detail page


1. You will add an **Object Table** compound to display top 5 orders information in the `Customers_Detail.page`.

    In the Layout Editor, expand the **Controls** | **Data Bound Container** group, drag and drop the **Object Table** control onto the page area.

    ![Object Table Added To Customer Detail Page](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-4.1.gif)

2. In the **Properties** pane, provide below information:
   
    | Field | Value |
    |----|----|
    | `Service`| select `com_sap_edm_sampleservice_v4.service` from the dropdown |
    | `EntitySet` | select `{@odata.readLink}/SalesOrders` from the dropdown |
    | `QueryOptions`| `$top=5&$orderby=CreatedAt desc` |

    ![Customer Detail Object Table Properties](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-4.2.png)

    >The **`odata.readLink`** annotation contains the read URL of the entity or collection.

    > **`SalesOrders`** is a navigation property in Customer entity to `SalesOrderHeader` entity. You can find this information in OData service metadata document.

    >![OData Service Metadata Navigation Property](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-4.3.png)

    >**`QueryOptions`** expression will filter order entries returned in descending when sorted by the order creation date property.

3. Now, start binding Object Table properties with `SalesOrderHeaders` entity set properties.

    In the **Appearance** section of the **Properties** pane, provide the below information:
    
    | Field | Value |
    |----|----|
    | `Description` | Remove the default value and leave it blank |
    | `Footnote` | Remove the default value and leave it blank |
    | `PreserveIconStackSpacing`| `false` |
    | `ProgressIndicator` | Remove the default value and leave it blank |
    | `StatusText`| `$(C,{GrossAmount},{CurrencyCode},'',{minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:true})` |
    | `Subhead` | bind it to `{CustomerID}` |
    | `SubstatusText`| Remove the default value and leave it blank |
    | `Tags` | Click the `item0` and then click the trash icon to delete the default item |
    | `Title`| `$(D,{CreatedAt},'','',{format:'medium'})` |

    ![Object Table Appearance Properties Configured](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-4.4.png)

4. In the **Behavior** section of the **Properties** pane, select `DisclosureIndicator` to **`AccessoryType`** property.

    ![AccessoryType Set To DisclosureIndicator](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.11.png)

5. In the **Avatar Grid** section of the **Properties** pane, remove the default Avatar by selecting the `item0` and then clicking the trash icon to delete the default item.

    ![Avatar Grid Default Item Removed](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.12.png)    

6. In the **Avatar Stack** section of the **Properties** pane, remove the default Avatar by selecting the `item0` and clicking the trash icon to delete the default item.

    ![Avatar Stack Default Item Removed](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-1.13.png)  

7. In the `EmptySection` of the **Properties** pane, provide  **`No Customer Orders Found`** to **Caption** property.

    ![EmptySection Caption No Customer Orders Found](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-4.6.png)

8. You may also want to open `SalesOrders_Detail.page` when clicking on any order in `Customers_Detail.page`. In `Customers_Detail.page`, select the Object Table, click the dotted icon under the **Events** tab for the `OnPress` event to open the **Object Browser**. Select `GenericNavigation.action` and click **OK**. 

    ![Customer Detail OnPress GenericNavigation Bound](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-4.7.png)

9.  You will now override its properties. Click the dotted icon for the `OnPress` property and select `Overrides`.

    ![OnPress Overrides Option Selected](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-4.8.png)

10. In the **Override Action Properties** window, provide the below information and click **OK** to complete the action override process.

    | Field | Value |
    |----|----|
    | `PageToOpen` | Select `SalesOrders_Details.page` from the dropdown |

    ![Override Action PageToOpen SalesOrders Details](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-4.9.png)

### Add Header control to orders grid


1. For orders grid area, you will add a header to display some text label in `Customers_Detail.page`.

    In the Layout Editor, expand the **Controls** | **Section Bar** section, drag and drop the **Header** control above the order grid area.

    ![Header Control Dragged Above Orders Grid](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-5.1.gif)

2. Provide the below information:

    | Property | Value |
    |----|----|
    | `Caption`| `Customer Orders` |

    ![Header Caption Set To Customer Orders](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-5.2.png)

    >You can find more details about [Header control](https://help.sap.com/doc/69c2ce3e50454264acf9cafe6c6e442c/Latest/en-US/docs-en/reference/schemadoc/Page/SectionedTable/Common/Header.schema.html) in documentation.


### Add Footer control to show total order count


1. For orders grid area, you will also add a footer to display total count of orders for a customer.

    In the Layout Editor, expand the **Controls** | **Section Bar** section, drag and drop the **Footer** control below the order grid area.

    ![Footer Control Dragged Below Orders Grid](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-6.1.gif)


2. To show a total count of orders for a customer, you will write a JavaScript logic for this calculation. Click `Create a rule` option for `AttributeLabel` property of the Footer control.

    ![Footer AttributeLabel Create Rule Option](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-6.2.png)

3. Keep the default selection for the *Object Type* as Rule and *Folders* path.

    ![Rule Object Type Default Selection](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-6.3.png)
   
4. In the **Base Information** step, enter the Rule name as `Customers_OrderCount`, and then click **Finish** to complete the rule creation process.

    ![Customers OrderCount Rule Name Entry](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-6.4.png)


5. Copy and paste the following code.

   ```JavaScript
   /**
   * Describe this function...
   * @param {IClientAPI} context
   */
   export default function CustomerOrderCount(context) {
       // Retrieves the current customer's information from the context
       const currentCustomer = context.getPageProxy().binding['@odata.readLink'];
       // Counts the number of sales orders associated with the current customer.
       return context.count('/demosampleapp/Services/com_sap_edm_sampleservice_v4.service', currentCustomer + '/SalesOrders', '').then((count) => {
           return count;
       });
   }
   ```

6. Switch back to the `Customers_Detail.page` and provide the below information for other properties of the Footer control:

    | Property | Value |
    |----|----|
    | `Caption`| `See All` |
    | `FooterStyle`| Select `Attribute` from the dropdown |
    | `AccessoryType`| Select `DisclosureIndicator` from the dropdown |

    ![Footer Control Properties Caption See All](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-6.5.png)

    >You can find more details about [Footer control](https://help.sap.com/doc/69c2ce3e50454264acf9cafe6c6e442c/Latest/en-US/docs-en/reference/schemadoc/Page/SectionedTable/Common/Footer.schema.html).

7. You may also want to open **Customer Orders** page when clicking **See All** to see a complete list of orders belong to a particular customer. 
    
    Navigate to the **Events** tab for the Footer control. Click the dotted icon for the `OnPress` property and select the `Object Browser`. Bound it to the `GenericNavigation.action`.

    ![Footer OnPress GenericNavigation Action Bound](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-6.6.png)

8. You will now override its properties. Click the dotted icon for the `OnPress` property and select `Overrides`. 

    ![Footer OnPress Overrides Option Selected](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-6.7.png)

9. In the **Override Action Properties** window, provide the below information and click **OK** to complete the action override process.

    | Field | Value |
    |----|----|
    | `PageToOpen` | Select `Customers_Orders.page` from the dropdown |    
    
    ![Override Action PageToOpen Customers Orders](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-6.8.png)

### Deploy the Project

You will now deploy the updated project to your MDK client.

Click the **Deploy** option in the editor's header area, and then choose the deployment target as **Mobile Services** .

![Deploy Project To Mobile Services](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-7.png)


### Run the Project

[OPTION BEGIN [Android]]

1. Tap **Check for Updates** in the user menu on the Main page, you will see a _New Version Available_ pop-up, tap **Now**.

    ![Android New Version Available Popup](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-8.1.png)

    Click a customer record, you will see the **Customer Orders** area in customer detail page and also total count of orders.

    ![Android Customer Detail With Orders Count](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-8.2.png)

    >If you see _No Customer Orders Found_ message, try with other customer record.

2. Tapping on any order navigates to its details page.

    ![Android Order Details Page Navigation](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-8.3.png)

3. Navigate back to **Details** page, tap **See All**, which navigates to the **Customer Orders** page.  

    ![Android Customer Detail See All Button](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-8.4.png)

    ![Android Customer Orders List Page](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-8.5.png)

[OPTION END]

[OPTION BEGIN [iOS]]

1. Tap **Check for Updates** in the user menu on the Main page, you will see a _New Version Available_ pop-up, tap **Now**.

    ![iOS New Version Available Popup](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-8.6.png)

2. Tap **Customers** | click a customer record. You will see the **Customer Orders** area in customer detail page and also total count of orders.

    ![iOS Customer Detail With Orders Count](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-8.7.png)

    >If you see _No Customer Orders Found_ message, try with other customer record.

3. Tapping on any order navigates to its details page.

    ![iOS Order Details Page Navigation](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-8.8.png)

4. Navigate back to **Details** page, tap **See All**, which navigates to the **Customer Orders** page.  

    ![iOS Customer Detail See All Button](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-8.9.png)

    ![iOS Customer Orders List Page](https://raw.githubusercontent.com/sap-tutorials/sap-mobile-development-kit/main/tutorials/cp-mobile-dev-kit-customer-order/img-8.10.png)

[OPTION END]

---
