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

View Bar Tag


The viewbar tag implements a drop-down list or a detail view list. It uses the following format:

<swe:viewbar type="value" mode="context" property="value">

where:

  • type. You can use one of the following values:
    • Select. If the user chooses this control, then display the view that this control references.
    • A value other than Select. Display the view bar as an HTML select control that includes the set of context or noncontext views, depending on the value of the mode attribute.
  • mode. You can use one of the following values:
    • Context. Display only context views.
    • NonContext. Display only noncontext views.

      If you do not specify the mode attribute, then SWE displays all views.

  • property. You can use this attribute only if you set the type attribute to Select. If:
    • You set this attribute to FormattedHtml, then SWE displays the HTML select control.
    • You do not specify this attribute, and if no views exist that SWE can display, then SWE displays the contents of this viewbar tag.

How the Viewbar Tag Implements Drop-Down Lists and Tabs

The viewbar tag implements the drop-down list that Siebel CRM uses for second-level navigation and the detail view list that Siebel CRM uses for third-level navigation. You can use it to implement one of the following items:

  • Drop-down list. SWE populates each item in the drop-down list with the display name of a context view. It displays the visibility drop-down list in the view bar frame. To implement this drop-down list as a viewbar tag, the following code in the CCPageContainer.swt file or the CCFrameViewbar.swt file sets the Type attribute to Select and the Mode attribute to Context:

    <swe:form>
    <td nowrap>
    <swe:viewbar type="Select" mode="Context">
    <swe:this property="FormattedHtml"/>
    </swe:viewbar>
    </td>
    </swe:form>

  • Tabs. SWE creates a horizontal view bar that includes tabs. It sets each tab label to the display name of a noncontext view. To implement this view bar, the following code in the CCViewbar_Tabs.swt file does not include the Type attribute and it sets the Mode attribute to NonContext:

    <swe:viewbar>
    ... HTML ...
    <swe:for-each-view>
    ... HTML ...
    <swe:viewlink state="Active">
    ... HTML ....
    <swe:this property="FormattedHtml">
    ... HTML ....
    <swe:viewname/>
    ... HTML ...
    </swe:this>
    ... HTML ...
    </swe:viewlink>
    <swe:viewlink state="InActive">
    ... HTML ....
    <swe:this property="FormattedHtml">
    ... HTML ....
    <swe:viewname/>
    ... HTML ...
    </swe:this>
    ... HTML ...
    </swe:viewlink>
    ... HTML ..
    </swe:for-each-view>
    ... HTML ..
    </swe:viewbar>

The detail view bar requires the following tags. The drop-down list does not require these tags:

  • child for-each-view
  • viewlink
  • viewname
Siebel Developer's Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.