XSL templates  Changing the default template

Chapter 6: Building Templates

Creating and editing templates

This section describes how to create, edit, and delete templates. There are also procedures for changing a template’s status.

NoteYou can also create templates on the fly when you create and edit aggregated applications. Do not create templates in this way when you create secure applications—you may receive a JavaScript error. See Chapter 3, “Developing Applications,” for details.

StepsCreating a template

  1. Select Build | Templates from the Mobile Web Studio left pane.

  2. Click New on the Template Manager toolbar to launch the Template Upload window.

  3. Click the down arrow next to Wizard to select from the list of templates.

  4. Complete these fields:

  5. If this is an HTML or HELP template, click Preview to see the template preview in a separate window.

  6. Click Save to save the new template definition.

  7. Click OK in the confirmation popup window.

  8. Click Close to exit the window.

StepsEditing a template

  1. In the Template Manager, select the status of the template you want to modify.

  2. Double-click the template listing in the detail view to open the Template Editor window.

  3. Change the Status, Type, Assigned Roles, or Code, and activate or deactivate the template.

  4. When you are satisfied with your changes, click Preview to review your modifications if this is an HTML or HELP template.

  5. Click Save to save your changes under the same name, or click Save As to save the template under a different name.

  6. Click Close to exit the Template Editor.

StepsChanging workflow status

If you are using the Mobile Web Studio’s workflow feature, you can change a template’s approval status as it moves through the workflow process.

  1. Right-click a template in the Template Manager’s detail view, select Approval Status from the pop-up Template Menu, then select the appropriate status; or

  2. Select a template in the Template Manager’s detail view, click Edit on the toolbar, select a new status from the Status drop-down list in the Template Editor window, then click Save.

StepsChanging a template’s active status

You cannot add an application to a template unless the template is approved and active.

  1. Right-click a template in the Template Manager’s detail view, select Active Status from the pop-up Template Menu, then select the appropriate status; or

  2. Select a template in the Template Manager’s detail view, click Edit on the toolbar, select or deselect Active, then click Save.

StepsDeleting a template

When you delete a template, it remains in the database, and displays in the detail view with a status of “Deleted.” To mark a template as deleted:

  1. Right-click a template in the Template Manager’s detail view, select Approval Status from the pop-up Template Menu, then select Deleted; or

  2. Select a template in the Template Manager’s detail view, click Edit on the toolbar, select Deleted from the Status drop-down list box in the Template Editor window, then click Save.

To change a template’s deleted status, select Deleted from the Template Manager’s Status menu, right-click the template in the detail view, select Approval Status, then select a new status.





Copyright © 2005. Sybase Inc. All rights reserved. Changing the default template

View this book as PDF