Generating Code for a Device Application

Generate client code for a mobile application project, so you can develop the device application to run on a mobile device.

Prerequisites 

Before you generate client code, develop the mobile business objects (MBOs) that implement the business logic and deploy them to Unwired Server.

  1. In the Solution Explorer, right-click the project, and select Generate Client Code.

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

  2. Specify the code-generation parameters.
  3. To generate GUI codes, select the Generate GUI frontend from template checkbox.

    By default, this option is not checked.

    If the option is checked, GUI codes are generated. Generated source files are organized into the project.

  4. (Optional) To save the code-generation parameters for reuse, enter the name for a new configuration, or select an existing Configuration, then click the Save (disk) icon.
  5. Click Next.
  6. Select the MBOs for which to generate code.
  7. Select the Unwired Server connection.
  8. (Optional) Save to either a new or existing Configuration, then click Next.
  9. Specify where to generate the code:
    1. Select either Generate in the Same Solution, or Create a New Solution.
    2. If you choose to create a new solution, enter:
      • Directory – directory in which to create the code.
      • Solution Name – name for the new solution.
    3. Specify the Visual Studio project and choose whether to Clean the Destination (delete existing files) before generating the code.
    4. Save to either a new or existing configuration.
  10. Click Finish.


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