Example of Using Master and Detail Applet Tags
In the example that this topic describes, assume a master and detail view includes the Category Items List Applet as the master applet and the Sub Category Items List Applet as the detail applet. The following table lists the view web template items that this view uses.
New Identifier | Applet | Applet Mode | Position |
---|---|---|---|
101 |
Category Items List Applet |
Base |
1 |
102 |
Sub Category Items List Applet |
Base |
1.1 |
The base template for the Category Items List Applet contains the following code:
<table>
<div od-iterator="row">
<tr>
<td>
<div od-type=control id ="5001" /> </td><!-- field value similar to "Small Business" -->
<td>
<div od-iterator=childIterator>
<div od-type=child-applet> <!-- Display the child applet-->
<!--od section child-applet close–>
</td>
</tr>
<!--od section iterator close–>
</table>
The base template for the Sub Category Items List Applet contains the following code:
<table><tr>
<div od-iterator="row">
<td>
<div od-type=control id="5001"/> </td><!-- field value similar to "Desktop" -->
<!--od section iterator close–>
</tr></table>