Adding a Parameter to a Mobile Business Object

Add a parameter to correspond with a synchronization parameter on a mobile client and map to a data source argument.

You can use mobile business object (MBO) parameters to synchronize and filter data that is returned to the mobile device from the back-end data source.

Note: If you drag and drop a data source or create MBO attributes that automatically generate attribute parameter-to-argument mapping, doing this procedure is optional.
  1. Select the MBO in the mobile application diagram, right-click and select Detailed Properties.
  2. Select the Parameters tab.
  3. Click Add add_logical_group_vs.jpg.

    A new parameter displays with the default name of parameter0. The next parameter you create will be parameter1, and so on.

  4. To define the parameter and map it to a data source argument, specify the following:
    Table 1. Parameters
    Field Description
    Name Name of the mobile business object parameter. Names cannot contain C# or Java reserved words.
    Data Type Select the parameter data type from the drop-down list and map to the data source data type. Data types include string, double, int, date, datetime, time, boolean, long, float, and decimal.
    Table 2. Arguments
    Field Description
    Argument Data source argument name to which the parameter is mapped. A parameter must be mapped to a data source argument.
    Data Type Data type of the data source argument to which the parameter is mapped.
    Default Value The default value for the argument, or select None or NULL in the default value editor. NULL is not supported for MBOs that use SAP as the back-end data source.
  5. To add advanced properties, click More>>.
    Table 3. Advanced
    Field Description
    Filter By (Optional) Define the parameter as a field that can be used to filter the results, based on the value, that are downloaded to mobile devices.
    Personalization Key (Optional) If you select Filter by, you can select a personalization key to map to the parameter, which provides an argument value. For example, you can create and specify a state personalization key, and return values that match a specific value, such as California.
Related concepts
Mobile Business Objects
Mobile Application Diagram
Synchronization
Parameters
Related tasks
Configuring Data Synchronization by Filtering Parameters
Related reference
Mobile Business Object Properties
Supported Data Sources
Attribute Properties
Operation Properties
Supported Data Sources


Created September 17, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com