Posts

Showing posts with the label Sybase Unwired Platform

SAP Netweaver Gateway OData Sybase Unwired Server

Image
SAP Mobility is hot and many organisations are experimenting or even implementing mobile solutions for their enterprise users. With the new OData features in SUP 2.0 it has become easy to expose your SAP data to mobile devices. In this blog we will show you the steps needed to make connection through SUP with a Netweaver Gateway OData service. In this post I will show how to setup Sybase Unwired Platform to accept clients making OData requests to Netweaver Gateway. Also how to setup the reference application to test your setup. Setting up Sybase Unwired Platform For this post we’re going to use the demo SAP Netweaver Gateway provided by SAP ( ES Workplace ) . You have to create an ES Workplace user account, because SUP doesn't like the default given username with the @ sign in it. Then login to the Sybase Control Center and go to the security tab. Start by creating a new security profile. Just press new and give it a name. No additional settings required he...

Sybase MBO Concept and Creation

Image
The design cornerstone of the Sybase’s MEAP the Sybase Unwired Platform is the Mobile Business Object (MBO). The MBO encapsulates the business process logic and data into a reusable unit that can be accessed from a variety of clients. The development can take two approaches , firstly the Top-Down approach, which creates the MBO based upon how the client wants to use it… eventually binding to the data source. Secondly, the Bottom-UP approach which uses the data source to automatically bind and create the MBO. Both use the Unwired tooling and are easy to create, with similar steps listed below Connect to the back-end data sources that need to be mobilized, via the Unwired tooling Connect the Unwired tooling to the Unwired Server Create a Mobile Application Project Create the MBO from the data source via wizards or Create the MBO attributes and Create, Update, Delete Operations seperately Deploy the MBO’s to the Unwired Server Diving a bit deeper the ...

Deploying the iOS Device Application with Sybase Unwired Platform

Image
Deploy the SUP101 application to the iPhone simulator for testing. Prerequisites Register an application connection in Sybase Control Center.You must be connected to the server where the mobile application project is deployed. Task From the top menu, select Product > Edit Scheme to iPhone 6.0 Simulator . Select Product > Build then Product > Run to build the project and start the iPhone simulator. In the iPhone applications screen, open the SUP101 application. When you run the application for the first time, it exits immediately with a dialog asking you to enter the application settings in the Settings application. In the iPhone simulator, go to Settings > SUP101 to enter the connection settings. SUP Server – the machine that hosts the server where the SUP101 mobile application project is deployed. SUP Server Port – ...

Creating the User Interface for iOS to work with Sybase Unwired Platform

Use Interface Builder to create and configure the user interface for the SUP101 application. The SUP101 iOS Object API example project contains the source code for the user interface for the sample application. Although the user interface is built automatically when you add the source files to the Xcode project, you can walk through the rest of the tasks and view the source code to see how to use Interface Builder to build the sample application. Viewing the SubscribeController View Controller A view controller functions as the root view screen for the SUP101 mobile application. Creating the MenuListController Create the menu list view. Creating the CustomerListController Create the customer list view. Adding the DetailController and Configuring the View Create the DetailController.xib.

Viewing the CallbackHandler and ApplicationCallbackHandler Files for ios

Look at CallBackHandler and ApplicationCallbackHandler files in Xcode. CallbackHandler is a subclass of SUPDefaultCallbackHandler , and listens for events sent from the server. It also implements the SUPApplicationCallback protocol to get connection, registration, and device state change notifications. The header, CallbackHandler.h , is referenced in a number of classes in this application, so create it first. You can create new Objective-C class files from the main menu: File > New > New File . ApplicationCallbackHandler is a subclass of SUPApplicationDefaultCallback , and it gets connection, registration, and device state change notifications. There are two threads involved in the SUP101 application—the main thread, which is driven by the client application user interface controller, and the mobile object client access thre...

Registering the Application Connection in Sybase Control Center

Register the iPhone simulator in Sybase Control Center. Prerequisites Connect to Sybase Control Center. Task Log in to Sybase Control Center using the credentials you indicated during installation. In Sybase Control Center, select View > Select > Unwired Server Cluster Management View . In the left pane, select Applications . In the right pane, click Application Connections . Click Register . In the Register Application Connection window, enter the required information: User name – user1 Template – SUP101_admin Application ID – SUP101 Security configuration – admin Logical role – leave blank or use the logical role when you assigned to this user during the deployment to Server Domain – default Activation code length – 3 Activation expiration (hours) – 72 Specify activation code – 123 Click OK .

Generating Java Object API Code with Sybase Unwired Platform

Image
Use the Generate Code wizard to generate object API code for the SUP101 mobile application project. Code generation creates the business logic, attributes, and operations for the mobile business objects (MBOs) in the project. Prerequisites In Enterprise Explorer, you must be connected to both My Sample Database and My Unwired Server. Code generation fails if the server-side (runtime) enterprise information system (EIS) datasources referenced by the MBOs in the project are not running and available to connect to when you generate object API code. In WorkSpace Navigator, verify the Java Compiler level is set correctly: Select Window > Preferences > Java > Compiler . In the Compiler compliance level list, select 1.6 if it does not already appear. Click Apply , then OK . Task In Sybase Unwired WorkSpace, open the SUP101 mobile app...

Creating the Android project to work with Sybase Unwired platform in Eclipse or Sybase Unwired Workspace

Image
Creating the Android Project Create a new Android project in Sybase Unwired WorkSpace. Add library resources to the project and set other application properties. Prerequisites To help create your project—and in a subsequent topic, build the user interface—download the SUP101 Android Object API (2.2 SP02) example project from the SAP Community Network (SCN) Web site at http://scn.sap.com/docs/DOC-8803 . Task Start Sybase Unwired WorkSpace. In Sybase Unwired WorkSpace Preferences, set the Android SDK location. Select File > New > Project . Select Android > Android Application Project , then Next . Depending on the Android version you are using, the information you provide in the next several steps may be in one or two screens. In the New Android Application window, use these values and click Next . Application Name – enter ...

Accessing MBO data with Object Queries in SUP android

Use the generated static methods in the MBO classes to retrieve MBO instances. To find all instances of an MBO, invoke the static findAll method contained in that MBO. For example, an MBO named Customer contains a method such as public static com.sybase.collections.GenericList<SUP101.Customer> findAll() . To find a particular instance of an MBO using the primary key, invoke MBO.findByPrimaryKey(...) . For example, if a Customer has the primary key "id" as int, the Customer MBO would contain the public static Customer findByPrimaryKey(int id) method, which performs the equivalent of Select x.* from Customer x where x.id = :id . If the return type is a list, additional methods are generated for you to further process the result, for example, to use paging. For example, consider this method, which returns a list of MBOs containin...

Creating, Updating, and Deleting MBO Records with Sybase Unwired Platform in Android

Perform create, update, and delete operations on the MBO instances that you have created. You can call the create , update , and delete methods for MBO instances. Note: For MBOs with custom create or update operations with parameters, you should use the custom operations, rather than the default create and update operations. See MBOs with Complex Types . Suppose you have an MBO named Customer . To create an instance within the database, invoke its create method, which causes the object to enter a pending state. Then call the MBO instance's submitPending method. Finally, synchronize with the generated database: Customer newcustomer = new Customer(); //Set the required fields for the customer // … newcustomer.create(); newcustomer.submitPending(); SUP101DB.synchronize(); For DOE-based applications, omit SUP101DB.synchronize; above. To update an existing MBO instance, retrieve the object instance th...

Sybase Unwired Platform Setup for Android

Installing Sybase Unwired Platform Install Sybase Mobile SDK and Sybase Unwired Platform Runtime. Before starting this tutorial, be sure you have all the requisite Unwired Platform components installed. For complete installation instructions, see the Sybase Unwired Platform documentation at http://sybooks.sybase.com/nav/summary.do?prod=1289: • Release Bulletin for Sybase Mobile SDK • Installation Guide for Sybase Mobile SDK • Release Bulletin for Runtime • Installation Guide for Runtime 1. Install these Unwired Platform Runtime components:               • Data Tier (included with single-server installation)               • Unwired Server 2. Install Mobile SDK, which includes:               • Development support for Native Object API applications, HTML5/JS Hybrid (Mobile Workflo...