Siebel Developer's Reference > Siebel Web Engine Tags > Subview Tags >

Subview Bar Tag


The subviewbar tag configures a subcategory View drop-down list. It can also display a second horizontal tab bar beneath the detail view bar. It uses the following format:

<swe:subviewbar type="type" property="value">

where:

  • type. If set to:
    • Select. SWE displays the subview bar as an HTML select control that displays the set of views that are available in the category that the user chooses.
    • Any value other than Select. SWE uses the viewlink tag and the viewname tag in the body of the subviewbar tag. The behavior of these tags is similar to how SWE uses them in the viewbar tag. For more information, see View Tags.
  • property. If set to FormattedHtml, then SWE displays the HTML Select control. You can use this attribute only if you set the type attribute to Select.

    If you do not include the property attribute, and if a subview exists, then SWE displays the contents of this subviewbar tag.

How SWE Uses the Subview Bar Tag

If the user chooses a category name in the detail view bar, and if the subviewbar tag:

  • Exists. SWE sets the default view in this category as the active view, and then displays the subcategory drop-down list or tab bar in this default view. It expands to list all the views that reside in the category that the user chooses.
  • Does not exist. SWE displays the default view for the category. The default view is the view that contains the lowest sequence number in the category that the user can view.

If the user chooses a noncategory view from the detail view bar, then the subviewbar tag displays nothing.

Example of Using the Subview Bar Tag as a Control

The following code configures the subviewbar tag as an HTML select control in a subcategory drop-down list. It references the CCViewDetail.swt file and the CCSubViewbar_Drop.swt file:

<swe:form>
<swe:subviewbar type="Select">
<tr class="tier4On">
<td>&nbsp;&nbsp;&nbsp;</td>
<td valign="top"><swe:pageitem id="2" property="DisplayName" /></td>
<td ><swe:this property="FormattedHtml" /></td>
<td width="100%">&nbsp;</td>
</tr>
</swe:subviewbar>
</swe:form>

Example of Using the Subview Bar Tag as a Tab or Link

The following code configures the subviewbar tag as a tab or link in a subcategory tab bar. It references the CCSubViewbar_Tabs.swt file:

<td class='tier4Off'><img src="images/nav/left_cap.gif" align="absmiddle" width="6" height="19" border="0" alt=""/></td>
<swe:subviewbar>
<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>&nbsp;<swe:viewname/>&nbsp;</nobr></td>

<td><img src="images/nav/tabon_rightcap.gif" align="absmiddle" width="6" height="19" border="0" alt="" /></td>

</swe:viewlink>
<swe:viewlink state="Inactive" property="FormattedHtml" >

<td class='tier4Off'><nobr>&nbsp;<swe:viewname/>&nbsp;img src="images/nav/tab_rightcap.gif" align="absmiddle" width="6" height="19" border="0" alt=""/></nobr></td>

</swe:viewlink>
</swe:subviewbar>
<td width="100%" class="tier4Back">&nbsp;</td>

Siebel Developer's Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.