Skip to Content

Hello Everyone.

In this blog series, we will go through how to start developing a simple mobile application with Sybase Unwired Platform.

For the sample application, we will use SAP Mobile Platform Version 2.2 SP2.

The information provided in this blog can be found in the online help on SyBooks Online infocenter.

Thanks to SAP for providing 30 days trial of SAP Mobile Platform.

In this trail connection to SAP System, sample database and unwired server is already done.

Summary

In this sample application I have used the standard flight data application components to search for flights, display the results and show the details of a particular flight in online and offline mode.

This blog contains

1.  Creation of Mobile Application Project

2.  Create Mobile Business Object

3.  Create Personalization Key

4.  Assign Load Arguments

5.  Deploying Project

6.  Create UI using Hybrid App Designer

7.  Registering the mobile device in Sybase Control Center

8.  Generating Hybrid App

9.  Testing App in Online Scenario

10.Testing App in Offline Scenario

Click here to Building Offline(Display Only) Hybrid Web Container Mobile Applications With Sybase Unwired Platform – Part 2

Click here to Building Offline(Display Only) Hybrid Web Container Mobile Applications With Sybase Unwired Platform – Part 3

Click here to Building Offline(Display Only) Hybrid Web Container Mobile Applications With Sybase Unwired Platform – Part 4

Just follow the following steps to create sample application.

Double click on Start Sybase Unwired Platform Services to start Sybase Unwired Platform.

Double click on Sybase Unwired Workspace 2.2 to create mobile application.

To create Mobile Application Project, Click on File -> New -> Mobile Application Project

/wp-content/uploads/2013/04/image010_210093.jpg

Provide Project Name

/wp-content/uploads/2013/04/image012_210094.jpg

After creating project we will add Mobile Business Object ( MBO ) to defining object data models with back-end EIS connections, attributes, operations and relationships that allow filtered data sets to be synchronized to the device.

/wp-content/uploads/2013/04/image014_210095.jpg

Give proper name

/wp-content/uploads/2013/04/image016_210096.jpg

Select data source type “SAP”

/wp-content/uploads/2013/04/image018_210097.jpg

Click on “Browse” to search BAPI

/wp-content/uploads/2013/04/image020_210100.jpg

Specify BAPI name (BAPI_FLIGHT_GETLIST)  and click on “Search BAPIs/RFCs”.

It will return list of BAPI method/s (operation/s).

Click on “Get List” and click on “OK”.

/wp-content/uploads/2013/04/image024_210102.jpg

Select Input and Output parameters.

For our application AIRLINE is the input parameter and FLIGHT_LIST is the output parameter.

Click on  “Finish” complete the wizard.

/wp-content/uploads/2013/04/image026_210103.jpg

Create Personalization Keys to get “Airline Name” from the user and retrieve only those fields/records that satisfy a condition.

/wp-content/uploads/2013/04/image034_210107.jpg

Specify Type to “STRING(3)” as of “AirlineID”.

and storage as “Transient” to store value of the personalization key in process, when the process ends, value will be lost.

/wp-content/uploads/2013/04/image036_210108.jpg

Now click on MBO “FlightList” click on “Properties”.

/wp-content/uploads/2013/04/image038_210109.jpg

Select “Attributes” tab and “Load Argumets” Tab.

Select Personalization Key which we have created earlier.

/wp-content/uploads/2013/04/image040_210110.jpg

Right-click on Mobile Application Diagram and Click on “Deploy Project”.

/wp-content/uploads/2013/04/image042_210111.jpg

Select Deploy Mode, Click on Next.

/wp-content/uploads/2013/04/image044_210112.jpg

Select MBO, Click on Next.

/wp-content/uploads/2013/04/image046_210113.jpg

Click on Next.

/wp-content/uploads/2013/04/image048_210114.jpg

Double click on Available Target Server. Click on Next.

/wp-content/uploads/2013/04/image050_210115.jpg

Click on Next.

/wp-content/uploads/2013/04/image052_210116.jpg

Select Server Connection.

/wp-content/uploads/2013/04/image054_210117.jpg

After selecting Server Connection, we can see Server Connection Properties.

/wp-content/uploads/2013/04/image056_210118.jpg

Click on Finish.

/wp-content/uploads/2013/04/image058_210119.jpg

Click here to Building Offline(Display Only) Hybrid Web Container Mobile Applications With Sybase Unwired Platform – Part 2

To report this post you need to login first.

7 Comments

You must be Logged on to comment or reply to a post.

  1. Devraj Singh

    Hi Summet,

    It is a very good document for beginners as well I would like to know after deploying who can we simulate the application on Andriod console. It would be gr8 if you can respond with some info on the same.

    wr~Dev

    (0) 
  2. Vamsi Konanki

    It is use full to beginners like me , i would like to know more about next process that how can we deploy in emulator (android) , respond us with some examples , thanks in advance .

    Vamsi konanki.

    (0) 

Leave a Reply