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

Overview of Using View Tags


SWE can display the following views on a single page:

  • Main view. The user uses the level 2 or level 3 view bar to choose the main view. A page can include only one main view.
  • Alternate views. Any other view. For example, the Search view that displays applets.

SWE can display views in the following ways:

  • Each view in a separate HTML frame.
  • All views in a single frame.
  • Multiple views in the main browser window or in a dialog box.

The examples in this book describe multiple view layouts that use SWE frames. The description for usage without frames is similar except you can use HTML tables to position the views instead of frames and framesets.

To support multiple views, you must modify frames, framesets, and the Content Container. The Content Container is the container page for the content area.

Starting with Siebel CRM version 7.7, SWE supports the viewbar, for-each-view, viewlink, and viewname tags only for standard interactivity. High interactivity uses the nav-control tag. For more information, see Navigation Control Tag.

Modifications That Occurred Starting with Siebel CRM Version 8.x

Siebel CRM version 8.x includes an outer content frame. If you configured a view frame in the application container page, then you must replace this view frame with a content frame. In prior versions, the application container page template that includes the view frame without the outer content frame does not create any errors, but it does allow you to configure Siebel CRM to display multiple views.

if you configured a view frame in the application container page in a version prior to Siebel CRM version 8.x, then you must replace this view frame with a content frame. This content frame defines the area where Siebel CRM can load one or more views. This frame contains a frameset that includes a view frame. The structure of this container template must be similar to the following example:

<swe:frameset htmlAttr="rows='80,50,50,*' border='0' frameborder='No'">

<swe:frame type="Page" htmlAttr="marginheight='0' marginwidth='0' noresize scrolling='No'">
<swe:include file="CCBanner.swt"/>
</swe:frame>

<swe:frame type="Screenbar" htmlAttr="marginheight='0' marginwidth='0' noresize scrolling='No'">
<swe:include file="CCScreenbar.swt"/>
</swe:frame>

<swe:frame type="Viewbar" htmlAttr="marginheight='0' marginwidth='0' noresize scrolling='No'">
<swe:include file="CCViewbar.swt"/>
</swe:frame>

<swe:frame type="Content" htmlAttr="marginheight='0' marginwidth='0' noresize scrolling='Yes'">
<swe:include file="CCMainView.swt"/>
</swe:frame>

</swe:frameset>

The following code from the CCMainView.swt file defines a frameset that contains the main view:

<swe:frameset htmlAttr="cols='100%' border='0' frameborder='No'">
<swe:frame type="View" htmlAttr=" noresize scrolling='Yes'">
<swe:current-view/>
</swe:frame>
</swe:frameset>

Displaying More Views in the Content Area

To display more views in the content area, you can configure Siebel CRM to load a different content container page in the content frame. To do this, you can configure SWE to call the LoadContentContainer method from a control or page item. The User Property Container sends this content container.You set this to the Web Template Name of the content container page and not to the SWT file name.

For example, to display the search view with the main view, you can configure SWE to create a content container page, such as CCSMainAndSearchView.swt, and then use the LoadContentContainer method to load it. The following code from the CCSMainAndSearchView.swt file contains the tags that load the main view and search view into two frames:

<swe:frameset htmlAttr="cols='100%' border='0' frameborder='No'">
<swe:frame type="View" htmlAttr="noresize scrolling='Yes'">
<swe:current-view/>
</swe:frame>
<swe:frame type="AltView" name="Search" htmlAttr="noresize scrolling='Yes'">
<swe:view name="Search View" id="Search" />
</swe:frame>
</swe:frameset>

The current-view tag references the main view. The view tag references alternate views.

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