Bookshelf Home | Contents | Index | PDF |
Configuring Siebel Business Applications > About Siebel Web Templates and Siebel Tags > About Siebel Tags > About Siebel Conditional TagsThis topic describes Siebel Web Engine conditional tags. For more information, see Siebel Developer's Reference. If Conditional TagThe swe:if tag provides a simple conditional branching capability. It uses the following format:
The swe:if tag includes the Condition attribute. Siebel CRM does the following:
The swe:if tag does not provide an else capability. To implement an else condition, you can use some combination of the swe:switch, swe:case, and swe:default tags. Switch, Case, and Default Conditional TagsIf used together, then the following tags provide a conditional branching capability that is similar to the switch, case, and default statements in JavaScript: The swe:switch tag is a container tag for the swe:case and swe:default tags. Format for the Switch, Case, and Default Conditional TagsThe swe:switch, swe:case, and swe:default tags use the following format: Attributes for the Switch, Case, and Default Conditional TagsThe swe:case tag includes the Condition attribute. The swe:switch and swe:default tags include no attributes. To process these tags, Siebel CRM does the following:
Variable Conditional TagAn applet template includes the swe:if-var tag. It conditionally express the body of the swe:if-var tag as determined by a variable that is set in a parent view web template. For the purposes of the swe:if-var tag, if an applet is associated with a view, then the web template in the applet acts as a child of the view web template. The applet placeholder in the view web template must define a variable that the swe:if-var tag in the child applet template can evaluate. The expression in the swe:if-var tag returns a value of true or false depending on if the variable it evaluates is a property of the swe:applet tag in the corresponding view web template. You can use this configuration to conditionally display parts of an applet depending on the position of the part in a view. Figure 34 describes object relationships that Siebel CRM uses with the variable conditional tag. Example Code That Uses the Variable Conditional TagIn this example, 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 references an applet through a view web template item. The template for this applet includes the following tags: <swe:menu type="Button" bitmap="MenuBttn" width="38" height="15" bgcolor="gray" fgcolor="blue"/> <swe:menu type="Button" bitmap="MenuBttn" width="38" height="15" bgcolor="gray" fgcolor="red"/> If you drag and drop the applet into the placeholder in the view web template, and if the applet Id for this placeholder is:
|
Configuring Siebel Business Applications | Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |