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
The
The 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 <div od-switch> tag is a container tag for the <div od-case="<>"> and <div od-default> tags. Format for the Switch, Case, and Default Conditional TagsThe <div od-switch>, <div od-case="<>">, and <div od-default> tags use the following format: <!--od section default close-> Attributes for the Switch, Case, and Default Conditional TagsThe <div od-case="<>"> tag includes the Condition attribute. The <div od-switch> and <div od-default> tags include no attributes. To process these tags, Siebel CRM does the following:
Variable Conditional TagAn applet template includes the <div od-if="Context, <object>"> tag. It conditionally express the body of the <div od-if="Context, <object>"> tag as determined by a variable that is set in a parent view web template. For the purposes of the <div od-if="Context, <object>"> 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 <div od-if="Context, <object>"> tag in the child applet template can evaluate. The expression in the <div od-if="Context, <object>"> tag returns a value of true or false depending on if the variable it evaluates is a property of the <div od-type="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 39 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: <div od-type="applet" hintMapType="Applet" id="1" property="FormattedHtml" hintText="Applet" var="Parent"/> <div od-type="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: <div od-type="menu" type="Button" bitmap="MenuBttn" width="38" height="15" bgcolor="gray" fgcolor="blue"/> <div od-type="menu" type="Button" bitmap="MenuBttn" width="38" height="15" bgcolor="gray" fgcolor="red"/> If you move the applet into the placeholder in the view web template, and if the applet Id for this placeholder is:
|
![]() ![]() |
Configuring Siebel Business Applications | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |