Binding Mobile Business Objects to Data Sources

Create mappings and bind data source content to mobile business object operations and attributes either when you create them, or later using the Properties view.

Prerequisites

You must create a mobile business object before you can bind data sources, unless you have created the mobile business object by dragging and dropping a data source onto the Mobile Application Diagram, in which case the binding is performed automatically. The data source to which you are binding must be running and accessible. For example, a connection to the database is available through a connection profile.

Task

The binding of data source information to mobile business object attributes and operations varies, depending on the data source to which you are binding. There are several places within SAP Mobile WorkSpace from which you can bind to a data source. Not all options are available from all locations. The Properties view offers the broadest support when binding/rebinding or editing MBO data sources.

Note: Use the Bind Data Source button available from the Properties view to bind to a data source if you are binding after you have created attributes and/or operations.
  1. Bind a data source to mobile business object attributes and operations from:
    Option Description
    New Mobile Business Object or New Operation wizard Bind to a data source when adding operations and attributes to a new mobile business object.
    Properties view For an existing mobile business object that you have created in a top-down fashion (in which you create attributes and/or operations without binding to a data source immediately), there are a number of places that you can create a data source binding depending on the context you are in (for example, selecting the Attributes tab), then selecting the Bind Data Source button.
  2. Follow the wizard instructions to bind the particular data source information to mobile business object attributes and operations.
Related concepts
Mobile Business Object Overview
Creating Mobile Business Objects
Related tasks
Creating a Mobile Application Project
Switching Between Developer Profiles
Deploying Custom Classes to SAP Mobile Server