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

The following table 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.

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>
  <div od-iterator="row">
  <tr>
   <td>
     <div od-type="control" id="5001"/> <!-- field value like "Small Business" -->
   </td>
   <td>
     <div od-child>
       <div od-type="child-applet"> <!-- Show the child applet -->
     <!--od section child-applet close-->
     </div>
   </td>
  </tr>
  <!--od section iterator close-->
  </div>
  </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>
  <div od-iterator="row">
   <td>
     <div od-type="control" id="5001"/> <!-- field value like "Desktop" -->
   </td>
  <!--od section iterator close-->
  </div>
  </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.