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

Data Visualisation with SAP BTP SDK for iOS

Build an iOS app with the SAP BTP SDK for iOS and use the new SAP Fiori for iOS Chart Floorplan API's to visualize entity values of an OData service.

Overview

🎓 beginner 15 min. Ios Sdk For SAP BTPHow ToBeginnerIosMobileOdataSAP Business Technology PlatformSAP Mobile Services
Unknown U Unknown January 9, 2023
Created by January 9, 2023
Contributors

Prerequisites

Prerequisites

Steps

How-To Details

As of version 2.1, the SAP BTP SDK for iOS now incorporates a Chart Floor plan for data visualisation.

In this tutorial, you will use the Sample OData service to visualize stock item quantities using a bar chart.

How-To Details
How-To Details

Time to Complete

20 Min


Step 1 Create Xcode project with SAP BTP SDK Assistant for iOS
โ€”

On your local machine, navigate to your ./<SAP BTP SDK for iOS> folder. Double-click the SAP BTP SDK Assistant for iOS icon to start the application.

Click the Plus button on the top-right of the SAP BTP SDK Assistant for iOS. The first page of the Xcode Project generation wizard lets you define the Project Properties.

Enter the following details:

FieldValue
Product NameDataViz
Author<your name>
Organization Name<your company name>
Organization Identifiercom.sap.tutorials.demoapp
Destination<choose a local destination>

Create Xcode project with SAP BTP SDK Assistant for iOS
Create Xcode project with SAP BTP SDK Assistant for iOS

Click Next to advance to the SAP Mobile Services for development and operations Configuration step.

In the SAP Mobile Services for development and operations Configuration page, select the Sample tab button.

Create Xcode project with SAP BTP SDK Assistant for iOS
Create Xcode project with SAP BTP SDK Assistant for iOS

The Sample Application Identifier and Sample Application Name are now pre-filled with the Bundle Identifier value from the previous page.

Click Next to advance to the OData Services step.

In the OData Services page, the Sample OData service connection you have specified in the previous wizard step is displayed:

Create Xcode project with SAP BTP SDK Assistant for iOS
Create Xcode project with SAP BTP SDK Assistant for iOS

Click Next to advance to the Optional Features step.

In the Optional Features page, you have the option to generate a Master-Detail Application, enable logging and log uploads, and enable remote notifications. Since you’re using the Sample OData service, all settings are enabled but greyed out.

Create Xcode project with SAP BTP SDK Assistant for iOS
Create Xcode project with SAP BTP SDK Assistant for iOS

After you have clicked Finish in the previous step, the SAP BTP SDK Assistant for iOS now loads the OData service’s metadata. This metadata describes the data model, and can be accessed via <service URL>$metadata. For your service, the metadata URL would be https://hcpms-<your account>trial.hanatrial.ondemand.com/SampleServices/ESPM.svc/$metadata

After the SAP BTP SDK Assistant for iOS has finished, Xcode will launch and open the just generated DataViz project.

Create Xcode project with SAP BTP SDK Assistant for iOS
Create Xcode project with SAP BTP SDK Assistant for iOS

Step 2 Test the generated Xcode project
+
Step 3 Create View Controller
+
Step 4 Implement View Controller
+
Step 5 Implement display of chart
+
Step 6 Add delegates
+
Step 7 Modify viewDidLoad method
+
Step 8 Bind the View Controller to the View
+
Step 9 Run the application
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 9
1. Create Xcode project with SAP BTP SDK Assistant for iOS 2. Test the generated Xcode project 3. Create View Controller 4. Implement View Controller 5. Implement display of chart 6. Add delegates 7. Modify viewDidLoad method 8. Bind the View Controller to the View 9. Run the application

Learn more →