Generating Object API Code

Launch the code generation wizard and generate the object API code for a replication-based iOS application.

  1. In Unwired WorkSpace, open the SUP101 mobile application project.
    In WorkSpace Navigator, right-click the SUP101 folder and select Open in Diagram Editor.
  2. Right-click in the SUP101 Mobile Application Diagram and select Generate Code.
  3. Click Next in the Code Generation Configuration page.
  4. In the Select Mobile Business Objects page, make sure the Customer and Sales_order MBOs are selected, then click Next.
  5. In the Configure options page, enter these configuration options and click Next:

    Generate Code - Configure Options page
    Option Description
    Language Select Objective C.
    Platform Accept the default, iOS.
    Unwired Server Select My Unwired Server.
    Server domain Accept default. If you are not connected to Unwired Server, this field is empty. Connect to Unwired Server to proceed.
    Page size Accept the default or select a larger page size.
    Name prefix The prefix for the generated files. Leave blank.
    Project path Accept the default or enter a different location for the generated project files.
    (Optional) Clean up destination before code generation Select this option to delete all items in the destination folder before generating the device client files.
  6. Click Finish, and select OK in the Success dialog.
    Objective-C code is generated into the specified output location and in the WorkSpace Navigator.


    WorkSpace Navigator - Project Structure