Creating the BlackBerry Device Application Prototype

Goal: Create the user interface for a prototype application that runs on a BlackBerry device, and accesses database mobile business objects.

Prerequisites

Create the SUP101 Mobile Application Project by completing the Tutorial: Mobile Business Object Development.

Task
  1. Verify that the Device Application Designer Preferences are set to the default settings.
    1. From the main menu, select Window > Preferences.
    2. Select Sybase, Inc. > Mobile Development > Device Application Designer.
    3. If the default settings have been changed, click Restore Defaults.
    4. Click OK.
  2. In WorkSpace Navigator, right-click the SUP101 Mobile Application Project folder and select Create Device Application Designer.
  3. In the New Device Application Designer wizard, complete these fields:
    1. In Parent Folder, select SUP101.
    2. In File Name, enter custinfo.
    3. In Platform Device, select the BlackBerry device for which you are developing the application.
    4. Select My Unwired Server as the connection profile.
    5. Click Finish.
      The Device Application Designer opens and creates the device application screens and connections.

      The Start icon is connected to the first screen (Login) and the screens for the mobile business object operations and relationships are automatically created.

  4. Double-click the Create Customer screen under the Customer screen.

    create_customer_screen

    The Screen Design page appears. The Menu on the right shows the context menu items for the screen. In the Screen Design page, you can customize the screen layout, style, menu items, controls, and so on. This tutorial uses the default style.

    The decorators to the right of the menu items show that an action is assigned to the menu item. Clicking the decorator allows you to edit the assigned action.


    bob_screen_design_menu

  5. In the Properties view, click Display > Platform-specific.
    If the Properties view is not open, right-click in the Screen Design page, and select Show Properties View.
  6. Select Generate a custom coding subclass to make the value true.

    bob_generate_customcodingsubclass_true
  7. On the Create Customer screen, click on the phone edit box to select it.

    bob_bb_phone_editbox
  8. In the Properties view, click Edit Box, then click the Coding tab.
  9. In Base name, enter phoneNumber.

    bob_editbox_coding
  10. Select File > Save.