Generate a Mobile Template

You can generate mobile templates for a number of mobile devices. Once generated, you can complete the options that define the mobile template, or accept the default settings. Later, you can edit a mobile template at any time.

When you deploy mobile applications to a mobile device, such as a PDA, the device displays the embedded data in grid form. When you edit the mobile template, you can alter the appearance of these grids. The mobile template editor includes options for presenting data on the device, including various color schemes, number of rows to display on each page, and so on.

Generating a mobile template

  1. Open the Mobile Development perspective.

  2. Select File|New|Mobile Template.

    The New Mobile Template wizard displays.

  3. Complete these fields:

    • Connection Profile – select the Unwired Accelerator server connection on which the template is generated and stored.

    • Template Name – enter a name for the new template.

    • Status – select the template's status. You can only assign templates that have the status "Approved" to mobile applications.

    • Type – select from HTML, HELP, JSP, or XSL. See Template Types for more information.

  4. Click Finish to exit the window.

    The Mobile Template Editor opens.

  5. Define the template type:

    1. Click inside the template editor to enable the following icons in the tool bar:

    2. Click a template icon in the tool bar to associate the template with a mobile device or dashboard and generates a default template for that type. Choose from the following:

      • Dashboard

      • Universal

      • PDA Online

      • WAP HTML

      • BlackBerry Online

      • WAP WML

      • Nokia

      • Palm

      • Pocket PC

      • Smartphone

      • BlackBerry Device

      The Mobile Template dialog opens.

      Note

      After saving the template, you can add or edit template properties, but you cannot change the device type.

    3. Define template properties:

      • For a BlackBerry device, see Generating and Editing BlackBerry Device Templates.

      • For a Portal Dashboard, see Generating and Editing Dashboard Templates

      • For all others, use the following table:

        Appearance

        Property typeDescription
        Default
        • Font – enter the name of the font to use for the header and fields, or select a font for the header and fields from the drop-down list.

        • Font size – the size of the header and fields, which must be an integer between 1 and 16.

        Header

        • Background color – the color of the header background. Click the color bar to display the color palette. Choose from the existing palette, or click Define Custom Colors to define a new color.

        • Text color – the color of the header text. Click the color bar to display the color palette. Choose from the existing palette, or click Define Custom Colors to define a new color.

        Row

        • Row text color – the color of the row text for the mobile application. Click the color bar to display the color palette. Choose from the existing palette, or click Define Custom Colors to define a new color.

        • Alternate row color – allows you to alternate row text by color:

          • Even row background color – select a color for the even rows. Click the color bar to display the color palette. Choose from the existing palette, or click Define Custom Colors to define a new color.

          • Odd row background color – select a color for the odd rows. Click the color bar to display the color palette. Choose from the existing palette, or click Define Custom Colors to define a new color.

        • Row background color – available if Alternate Row Color is not selected. Allows you to select the background color of the field data. Click the color bar to display the color palette. Choose from the existing palette, or click Define Custom Colors to define a new color.

        Paging

        Number of rows in a page - Enter the number of rows you want to display on a page.

        CGI Parameter

        • Parameter Input Field Size – the input field size for CGI parameters.

        • Button Text – the text that displays for the OK button.

    4. Click OK to save your changes and exit the dialog.

  6. Save your work. Select File|Save As and name your new mobile template, or File|Save to save an existing mobile template.

Generating and Editing BlackBerry Device Templates

Generating and Editing Dashboard Templates

Using the Mobile Template Editor

Working with the Template Editor

Assigning Templates to Mobile Applications

Mobile Device Types

Mobile Template File Types

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com