Bookshelf Home | Contents | Index | PDF |
Configuring Siebel Business Applications > About Siebel Web Templates and Siebel Tags > About Applet Web Templates > About Tree Applet TemplatesThis topic describes the tree applet template. For more information, see Configuring a Tree Applet. How Siebel CRM Builds and Displays a Tree AppletTo display a tree, Siebel CRM iterates through each item of the tree in a top-down, depth-first fashion, and displays one item at a time. Siebel CRM defines this behavior in the swe:for-each-node tag. Siebel CRM uses the swe:for-each-indent tag to indent each tree item. It uses this tag to do the following:
Siebel CRM uses a series of GIF images to do the indentation or to insert white spaces if in text-only mode. Siebel CRM uses images to display the expand icon and collapse icon, or to display text if in text-only mode. The swe:indent-img tag defines these objects. Siebel CRM displays, as part of the view, the list applet that is associated with the currently chosen tree node. For more information, see Configuring Icons in a Tree Applet. Example Code of a Tree Applet TemplateIn this example, if the user clicks or expands a tree, then the swe:applet-tree-list tag provides a placeholder for a list applet that Siebel CRM displays. The applet that Siebel CRM displays depends on the node that is currently chosen. The following is example code of a tree applet template: <!--View with tree applet on the left and list applet on the right--> <table border="0" cellspacing="0" cellpadding="1" width="100%"> <swe:applet id="1" hintText="Tree Applet"/> Example Code of a Tree Applet Template That Displays the Tree in a Single ColumnIn this example, Siebel CRM ignores the following items:
The following example code of a tree applet template displays the tree in a single column: <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0> <swe:this property="FormattedHtml"/> <swe:this property="FormattedHtml"/> Tags That Siebel CRM Includes in a Tree Applet TemplateThis topic describes some of the tags that Siebel CRM includes in a tree applet template. SWE Tag That Displays Tree Nodes and Field ValuesSiebel CRM uses the swe:for-each-node tag to display tree nodes and field values. It iterates through each visible item that resides in the tree control in a top-down, depth-first fashion. The attributes are optional. If the Count attribute is not defined, then the tag iterates through all nodes in the tree. The swe:for-each-node tag includes the following attributes:
SWE Tag That Indents Tree ItemsSiebel CRM uses the swe:for-each-indent to indent tree items. It iterates through each level of a tree item. The swe:for-each-indent tag does not include any attributes. SWE Tag That Provides a Placeholder for a GIF ImageSiebel CRM uses the swe:indent-img as a placeholder for a GIF image that corresponds to the indent level for the tree item that the user chooses in the Siebel client. At each level, the Siebel Web Engine uses the swe:indent-img tag to identify the GIF file. The GIF image can include an empty space or a vertical bar. The swe:indent-img tag does not include any attributes. SWE Tag That Provides a Placeholder for a Tree ItemSiebel CRM uses the swe:node as a placeholder for tree item. A tree item can be a repository tree node or a field value. Note the following:
The expand icon, collapse icon, and links are parts of a tree item. Depending on the configuration file settings, Siebel CRM displays the expand icon or collapse icon as a GIF image or text. It only displays the expand icon or collapse for a tree item that contain child items. The following links are associated with each item:
Choosing an item allows the user to access the list applet that is associated with the tree node. The swe:node tag must use the swe:this tag as a child tag. The swe:node tag includes the type attribute. This attribute can include the following values: |
Configuring Siebel Business Applications | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |