Creating an Attribute for a Mobile Business Object

Add an attribute to a mobile business object (MBO) to enable the MBO to store property values. You can map an MBO attribute to a data source column.

Prerequisites 

Create a mobile business object.

  1. Drag Attribute from the Toolbox and drop it onto the mobile business object in the mobile application diagram.

    The first time the wizard opens, the Introduction page displays. You can select to not show this page again.

  2. Follow the wizard instructions to create attributes for the mobile business object.
    Attributes vary depending on the data source to which you are binding.
    Note:
    • Attribute names cannot contain C# or Java reserved words.
    • Attribute and parameter lengths now support a maximum length. The default length is 300 and the Maximum length field is enabled only if the data type is string and binary.

      If you create an MBO or an MBO operation with a back-end data source, the attribute/parameter length is obtained from the back-end data source and the default lengths are the same as the corresponding column lengths.

    • If you created the MBO by dragging and dropping a stored procedure onto the mobile application diagram, note the following. There is a limitation for ASA and DB2 Native stored procedure Scalar attributes. The length of the Scalar attribute cannot be obtained and is set to 10. You can manually change the attribute length in the Detailed Properties dialog or use an OLE or ODBC connection instead of the Native connection; both use the correct Scalar attribute length.
Related concepts
Mobile Business Objects
Related reference
Mobile Business Object Properties
Supported Data Sources


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