This section describes how to customize templates for applications that are to be deployed to a BlackBerry device and used in online mode. You can modify the basic BlackBerry template, or create various templates.
The BlackBerry template can only be used for grid data
and not for non-grid (or unstructured) data, such as a Microsoft
Word document. You can convert unstructured data to a grid format
using JSP, and then apply the BlackBerry template.
Customizing BlackBerry templates for online mode
In Mobile Web Studio, select Template in the left pane, and Approved under Template Manager Status.
Click the New button to start Template Upload.
On the Template Upload, click Wizard and select BlackBerry.
In the BlackBerry Application Template Customization editor, make these selections to change the header appearance (otherwise accept the defaults):
BlackBerry Device tab In Name, enter BlackBerry2
.
Appearance tab Under Header Properties, make these changes to the header appearance (accept the defaults for all others):
Change Font Size to 3.
Enter #FF0000 for Font Color.
Select Bold, to use a boldface font for the header.
Select Row Separator, to add a horizontal spacing line below the header.
Select Column Separator, to separate each header’s column with a symbol, and accept “|” to use a vertical line to separate columns.
Preview tab Click the Preview tab to preview the changes.
Return to the Appearance tab, and make these changes to the row appearance:
Appearance tab Under Alternate Row Properties, make these changes to data rows appearance (accept the defaults for all others):
Select Show Odd and Even Color by Row.
Enter #336600 for Even Row Color.
Enter 00CC66 for Odd Row Color.
Select Row Separator to add a horizontal spacing line below rows.
Select Paragraph Separator to add a space between each row.
Select Column Separator to separate each row’s column with a symbol, and enter “|” to use a vertical line to separate each row’s record.
Preview tab Click Preview to see the changes you made.
The BlackBerry2 template can be applied to applications that you plan to deploy to the BlackBerry device. Once you apply the template to an application and synchronize your BlackBerry device, the new template will be used on the application.
Click Finish.
On Template Upload, select all roles.
Click Save, and OK to confirm.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |