Generating and Editing Templates

You can generate templates for the various types of devices (PDA, Blackberry, WAP-HTML, and WAP-WML), as well as for the Dashboard. Once generated, you can complete the options that define the template, or accept the default settings. You can edit a template at any time.

When you deploy mobile applications to a mobile device such as PDAs, or BlackBerry devices, the device displays the embedded data in grid form. When you edit the template, you can alter the appearance of these grids. The 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 new template

  1. Select File | New | Template. The Template wizard displays.

  2. 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. For example, you might want to name a template "2-4 Basic" if you plan to assign this template to a mobile application that contains two columns and four elements.

    • 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.

  3. Click Finish to exit the window. The Template Editor displays. You have created a blank template

  4. Select the device type to associate with this template by clicking one of the generate template icons in the toolbar. Move your cursor over each of the icons for a description of the template it generates. Selecting a device type generates a default template for that device type. Once saved, you cannot change the device type. If you edit the template, you can modify various properties and fields, but not the device type.

    At this point, the procedures for generating the template and editing the template are the same. See the topic that corresponds to the type of template you are generating or editing:

  5. Complete the options for the new or edited template, and click OK.

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

Using the Template Editor

Assigning Templates to Mobile Applications

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