Using the Template Editor

The Template Editor displays whenever you edit an existing template, or generate a new template. It allows you to preview templates, view content, and modify certain general template properties. To generate and edit a template for a specific device type, see Generating and Editing Templates.

Accessing the Template Editor

  1. Double-click the template you want to edit, or select File | New |Template. The Template Editor appears.

  2. The following tables describe the various Template Editor pages/sections: Introduction, Properties, Content , and Preview.

    Introduction

    The Introduction section displays initially when you launch the Template Editor.

    Introduction

    ActionDescription
    StartOpens the Content page/section, which displays the location of the template.
    Tutorial Launches the Mobile Development cheat sheets, which guide you through the process of developing mobile applications, generating new templates, deploying to a mobile device, and so on. You can also access the tutorials from the main menu by selecting Help | Cheat Sheets | Mobile Development and the cheat sheet name.
    HelpDisplays a context-sensitive help dialog box., from which you can navigate to Mobile development help by selecting Sybase WorkSpace | Mobile Development.

    Content

    When you click the Content section, the XML content and path that defines the template displays.

    Properties

    The Properties section of the Template Editor contains general information about the template.

    Properties

    Property nameDescription
    General

    • Device type - displays the device type for which this template is associated, and appears only for templates that already exist. See Device Types for more information.

    • Type - defines the type of template. See Template Types for more information.

    • Status - selects the folder to which the template belongs. Templates are normally stored in the Approved folder.

    • Options - click Active to make the template available to Unwired Accelerator users. To be active, the template must also have a status of " Approved".

    Roles

    Assign the appropriate roles to the template. When you assign a role to a template, all users assigned that role can access the template in Unwired Accelerator.

    Note

    Once you add a mobile application to a page, the roles assigned to the page and mobile applications supersede the roles assigned to the underlying template. A template's roles pertain only to which roles can access templates in Unwired Accelerator.

    See Roles and the Unwired Accelerator Developer's Guide for more information.
    InformationDisplays status and information about the template.
  3. Preview your changes by clicking the Preview section. Select File | Save to save your changes.

Previewing Templates

Working with the Template Editor

Roles

Favorite Configurations

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