Siebel Tools Reference > Special Behavior Supported by Templates > Conditional Tags >

SWE Conditional Tags


The SWE framework supports the following conditional tags.

Figure 232 shows a diagram of the relationships.

Figure 232.  Object Relationships
Click for full size image

Consider an example where a view uses a template that contains the following tags:

<swe:applet hintMapType="Applet" id="1" property="FormattedHtml" hintText="Applet" var="Parent"/>

<swe:applet hintMapType="Applet" id="2" property="FormattedHtml" hintText="Applet" var="Child"/>

The view object also references an applet (through a view Web template item) whose template includes the following tags:

<swe:if-var name="Parent">

<td valign="middle" nowrap>

<swe:menu type="Button" bitmap="MenuBttn" width="38" height="15" bgcolor="gray" fgcolor="blue"/>

</td>

</swe:if-var>

<swe:if-var name="Child">

<td valign="middle" nowrap>

<swe:menu type="Button" bitmap="MenuBttn" width="38" height="15" bgcolor="gray" fgcolor="red"/>

</td>

</swe:if-var>

If the user drags and drops the applet into the placeholder in the view template with an id=1, the first swe:if-var condition will return TRUE and the second will return FALSE. This is because the <swe:applet> placeholder with an id=1 has its var property set to "Parent." As a result, the button menu will be displayed with a foreground color of blue. By contrast, if the user had mapped the applet to the placeholder represented by <swe:applet id="2">, the reverse would be true, and the button menu will be displayed with a foreground color of red.


 Siebel Tools Reference
 Published: 20 October 2003