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

About Catalog List Applets and Rich List Templates


A catalog list applet or a rich list template supports a layout that is similar to a catalog. Siebel CRM can display a catalog in a view that references applets that maintain a parent and child relationship. You can display records from the parent applet and the child applet so that Siebel CRM interweaves them with each other.

Example of an Applet That Interweaves Records

Figure 32 describes an example of an applet that interweaves records.

Figure 32.  Example of an Applet That Interweaves Records

Note how Siebel CRM interweaves records in this example:

  • The parent applet provides data for the bullet items under Portable Music.
  • The child applet provides data for values that Siebel CRM displays below Portable Music.

To create this layout, the parent and child applets are list applets. The parent applet is a root level applet. You can use more than one root level applet to display more than one set of parent-child relationships in a view.

The Position Property Defines Relationships Between Applets

The Position property of the view web template item defines the relationship that exists between the applets. It works similarly to the Position property of the tree node. The root level applets contain position values, such as 1, 2, and so on. You assign the immediate child applets of the applet with position 1 with position values 1.1, 1.2, and so on. You can define third level applets with position 1.1.1, 1.1.2, and so on. These third level applets are child applets of the applet with position 1.1. For more information, see Defining the Position Property of a Tree Node.

Tags That Define the Layout for Nonroot Applets

This topic describes tags that define the layout for nonroot applets layout. Siebel CRM only supports applets in the base mode in this layout. Note the following:

  • If the Applet property in the view web template item references a root applet, then Siebel CRM maps this applet to a swe:applet tag in the view web template.
  • If the Applet property in the view web template item references a nonroot applet, then Siebel CRM does not assign an Id value to this applet. It does not define the layout of these nonroot applets in the view web template. It defines them in the applet template of the root level applets.
SWE Tag That Iterates Through Each Child Applet

The swe:for-each-child tag iterates through each of the child applets defined for the applet, as determined by the Item Identifier property of the view web template item of the view that the applet references. You can use this tag only in the base template of an applet. If the applet does not include any child applets, then Siebel CRM skips this tag.

The swe:for-each-child tag uses the following format:

<swe:for-each-child> ... </swe:for-each-child>

For more information about the item identifier, see Properties of the Applet Web Template Item.

SWE Tag That Places the Child Applet in the Parent Applet

The swe:child-applet tag places the child applet in the parent applet. Siebel CRM uses the base template of the child applet to display the child applet at the location where you place this tag.

The swe:child-applet tag uses the following format:

<swe:child-applet/>

Example of a Parent-Child Applet Relationship

This topic describes the following example parent-child applet relationship:

  • The parent applet is Category Items List Applet
  • The child applet is Sub Category Items List Applet

Table 30 describes the properties of the view web template item in the view that references these applets. For more information about the item identifier, see Properties of the Applet Web Template Item.

Table 30. Properties of the View Web Template Item
Item Identifier
Applet
Applet Mode
Position

100

Category Items List Applet

Base

1

101

Sub Category Items List Applet

Base

1.1

Code That Defines the Table for the Base Template

The following code defines the table for the base template of the Category Items List Applet:

  <table>

  <swe:for-each-row>

  <tr>

<td>

<swe:control id = "5001" /> <!-- field value like "Small Business" -->

</td>

<td>

<swe:for-each-child>

<swe:child-applet> <!-- Show the child applet -->

</swe:for-each-child>

</td>

  </tr>

  </swe:for-each-row>

  </table>

Code That Resides in the Base Template

The following code resides in the base template for the Sub Category Items List Applet:

  <table><tr>

  <swe:for-each-row>

<td>

<swe:control id="5001"/> <!-- field value like "Desktop" -->

</td>

  </swe:for-each-row>

  </tr></table>

Set the HTML Number of Rows property of the Sub Category Items List Applet to the number of values that Siebel CRM must display under each category value. To allow the user to drilldown from the category and subcategory values, you must configure the appropriate drilldown objects.

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