Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel Developer's Reference > Tags >
swe:subviewbar, swe:for-each-subview
Purpose
A subcategory View picklist is implemented using a
<swe:subviewbar>
tag. The<swe:subviewbar>
tag can alternately be configured to display a second horizontal tab bar beneath the detail View bar, but the picklist is the preferable approach.The default behavior of the
<swe:viewbar>
tag, if the<swe:subviewbar>
tag is not present, is to display the default View for that category when the user selects the category name in the detail View bar. The default View is the View with the lowest sequence number in that category that is visible to the user.By including the
<swe:subviewbar>
tag, this behavior is augmented with a picklist or subcategory tab bar that conditionally appears when the currently active View belongs to a category. This tag expands to list all the Views that belong to the selected category. If the currently active View does not belong to a category, then this tag does not render anything on the page. Thus, if the user chooses a category name from the detail View bar (which means the default View within that category is now the active View), the subcategory picklist or tab bar is rendered in that default View if this tag is present. If the user chooses a noncategory View from the detail View bar, the subviewbar tag does not render anything on the resulting page.This tag is used when the type attribute of
<swe:subviewbar>
is not set to Select. This tag iterates over each of the subviews. This is similar to the behavior of<swe:for-each-view>
.Syntax
The
<swe:subviewbar>
tag syntax is described below:<swe:subviewbar type="xxx" property="zzz">
Attributes
Type. This can have one value: "Select." If the type is set to Select the subviewbar will be rendered as a HTML select control (picklist) showing the set of available Views in the selected category.
Property. This attribute is to be used only when the type is set to Select (it will not have any effect in other cases). This attribute can have a value of "FormattedHtml", in which case the HTML Select control is rendered. If this attribute is not specified, then this tag acts as a conditional tag to show its contents if there are sub-views.
When the Type attribute is not set to Select,
<swe:viewlink>
and<swe:viewname>
tags are used within the body of the<swe:subviewbar>
tag. The behavior of these tags is similar to their use inside of a<swe:viewbar>
tag.Examples
- As an HTML select control (subcategory picklist): Refer to CCViewDetail.swt and CCSubViewbar_Drop.swt:
<swe:subviewbar type="Select">
<td valign="top"><swe:pageitem id="2" property="DisplayName" /></td>
<td ><swe:this property="FormattedHtml" /></td>
<td class='tier4Off'><img src="images/nav/left_cap.gif" align="absmiddle" width="6" height="19" border="0" alt=""/></td>
<swe:viewlink state="Active" property="FormattedHtml" >
<td><img src="images/nav/tabon_arrw.gif" align="absmiddle"
width="6" height="19" border="0" alt=""/></td><td class='tier4OnLabel' background="images/nav/tabon_back.gif"><nobr> <swe:viewname/> </nobr></td>
<td><img src="images/nav/tabon_rightcap.gif" align="absmiddle" width="6" height="19" border="0" alt="" /></td>
<swe:viewlink state="Inactive" property="FormattedHtml" >
<td class='tier4Off'><nobr> <swe:viewname/> img src="images/nav/tab_rightcap.gif" align="absmiddle" width="6" height="19" border="0" alt=""/></nobr></td>
Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel Developer's Reference Published: 23 October 2003 |