Configuring Siebel Business Applications > About Siebel Web Templates and Siebel Tags > About Applet Web Templates >

About List Applet Templates


Information in this topic is presented in terms of if the user can or cannot edit information that Siebel CRM displays in an applet, which the Edit List mode controls. For more information, see Options to Control How the User Creates, Edits, Queries, and Deletes CRM Data.

Example Code of a List Applet Template

The following is example code of a list applet template:

  <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">

  <swe:form>

...

  <swe:list>

  <!-- List Header Section Start>

<swe:control id="147">

<td class="Header" align="center">

<swe:this property="DisplayName"/>

</td>

</swe:control>

<swe:select-row>

<td width="42" align="center" class="Header">&nbsp;

</td>

</swe:select-row>

  <swe:for-each startValue="501" count="20" iteratorName="currentId">

<swe:control id="swe:currentId">

<td align="swe:this.TextAlignment" class="Header">

<swe:this property="ListHeader"/>

</td>

</swe:control>

  </swe:for-each>

<swe:control id="142">

<td class="Header" align="center">

<swe:this property="DisplayName"/>

</td>

</swe:control>

  <!-- List Header Section End>

  <!------------ Loop for all 7 records, List Body ------------->

  <swe:for-each-row count="7">

  <tr class="swe:this.RowStyle">

<swe:control id="147">

<td width="42" align="center" class="Row">

<swe:this property="FormattedHtml" hintMapType="Control"/>

</td>

</swe:control>

<swe:select-row>

<td width="42" align="center" class="Row">

<swe:this property="FormattedHtml" />

</td>

</swe:select-row>

  <!-- ---------- List Field Values (501-520) ------------->

  <swe:for-each startValue="501" count="40" iteratorName="currentId">

<swe:control id="swe:currentId">

<td align="swe:this.TextAlignment" class="Row">

<swe:this property="FormattedHtml"

hintText="Field"/>

</td>

</swe:control>

  </swe:for-each>

  <!-- ---------- Per-record Control Buttons ------------->

<swe:control id="142">

<td align="center" class="Row">

<swe:this property="FormattedHtml" hintMapType="Control"/>

</td>

</swe:control>

  </tr>

  </swe:for-each-row>

  <!-- ---------- End Loop, List Body ------------->

  </swe:list>

...

  </swe:form>

  </table>

Tags Included in a List Applet Template

This topic describes important tags included in a list applet template.

SWE Tag That Encloses an Editable Section

The swe:form tag encloses an editable section. You use it for an editable list applet.

SWE Tag That Encloses the List Header and Body

The swe:list tag encloses the section of the template that contains the list header and body. For a Siebel application that uses high interactivity, Siebel CRM replaces the section between the start and end of the swe:list tags with the specialized list control that supports certain capabilities, such as resizing columns. Siebel CRM ignores this tag for standard interactivity applications. For more information, see About Standard Interactivity and High Interactivity.

SWE Tag That Defines a Placeholder for a List Column

The swe:control tag defines a placeholder for a list column. It includes the Property attribute, which specifies the property of the control to render. This attribute includes the following important values that are relevant for a list applet:

  • FormattedHTML. Instructs Siebel CRM to render the data value of the control.
  • DisplayName. Corresponds to the Caption property.

You can use some properties of a list column to control the attributes of an HTML element that the swe:control tag contains. For example, you can use the following code to set the align attribute of a TD tag to equal the Text Alignment property of the enclosing list column:

<td align="swe:this.TextAlignment">

SWE Tag That Allows the User to Choose Rows

The swe:select-row tag renders check boxes that allow the user to choose multiple rows. For more information, see Allowing the User to Choose Multiple Rows in Standard Interactivity.

SWE Tag That Repeats for Each List Row

The swe:for-each-row tag encloses the section of the template that Siebel CRM repeats for each list row.

Configuring Siebel Business Applications Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices.