Create a mobile business object (MBO) with defined attributes and operations by binding to a database table or view.
PrerequisitesÂ
- Create a Mobile Application project.
- Connect to the data source.
-
Drag the data source, for example a database table or view or a stored procedure, from the Server Explorer and drop it onto the mobile application diagram.
The Mobile Business Object wizard opens with the data source information populated, the SQL query statement automatically generated, attribute-to-column mapping, and parameter-to-argument mapping.
Note:
- When using an ASA Native client connection, you cannot drag and drop a stored procedure from the Server Explorer to the mobile application diagram to create an MBO.
- If you create the MBO by dragging and dropping a stored procedure onto the mobile application diagram, Scalar and CURSOR output parameters are supported. Scalar parameters are common to all databases and CURSOR parameters are exclusive to Oracle DB2 databases.
- When using drag and drop to generate an MBO from either a stored procedure or a view, the SQL statement is automatically generated.
-
Follow the wizard instructions and click Finish to complete the MBO.
Attribute and operation information varies, depending on the selected data source.