Siebel Wireless Administration Guide > Configuring Siebel Wireless > Configuring Siebel Wireless Template Files and XSL Stylesheets >

Designing with Templates for Siebel Wireless

Siebel Wireless has its own set of templates and stylesheets. Because the screen of a mobile device is small, the templates are designed to display the information in a single column, a single applet per view.

Display items include anything that can be displayed on the screen, including controls, labels, and field values. The items are displayed on-screen based on the sequence established in Siebel Tools.

When you configure a wireless applet in Siebel Tools, you associate item identifiers with the elements you want to include in the applet. The item identifiers are mapped to predefined control IDs in the template. The item identifiers and the control IDs establish the order in which the elements are displayed.

For example, the portion of a detail applet template for a field label and value looks like this:

<swe:for-each count=29 iteratorName="CurrentId" startValue="11">
<!-- reserved for labels -->
<swe:control id="swe:CurrentId+100" hintMapType="Control">
<swe:this property="DisplayName" hintText="Label"/>
<!-- reserved for form items -->
<swe:control id="swe:CurrentId" hintMapType="FormItem">
<swe:this property="FormattedHtml" hintText="FormItem"/>

In this example, the control ID range from 11 to 40 (start at 11 and run 29 times) is reserved for field items. The range 111 to 140 (100 + CurrentId) is reserved for label items. In the template, the control ID for the label (CurrentId+100) appears before the control ID for the field value (CurrentId), so a label item with control ID 111 would be displayed above a field item with control ID 11.

Using Siebel Tools, you can map a field (for example, Account Name) to 11 and the field label (for example, Account) to 111 (100 + 11). When this template is used, the label is displayed first, then the field value. You would associate other field values to 12, 13, and so forth, and associate their labels to 112, 113, and so forth.

You can see the control ID ranges available for each template by reviewing the hint text in the template. The detail applet template, for example, uses control ID 1 for the applet title with data, 100 for the applet title label, 2-10 for control items such as Search, 11-40 for field items, 111-140 for field label items, 41-50 for control items such as Main Menu link, and so forth.

The template files are used to create either a WML or XML file, depending on the browser type.

For information about how Siebel templates work, see Using Siebel Tools.

Siebel Wireless Administration Guide Copyright © 2007, Oracle. All rights reserved.