Configuring Siebel eBusiness Applications > Overview of Web Templates and Siebel Tags > About Siebel Templates >

About View Templates

A view is a collection of applets displayed on a screen at the same time. It consists of a single window displaying related data forms and lists (applets). The user can select the current (active) view from either the Screenbar (the default view for that screen), the second-level Visibility picklist, a third-level tab, the fourth level Category-view picklist, the thread bar, the history list, history forward and back buttons, or by a drilldown from another view. Access to particular views is determined by the four navigational constructs in the physical UI.

View Templates are associated with a view through the View Web Template object definition. A view template primarily contains placeholders for applets as specified by the <swe:applet> tag. The mapping of specific applets to these placeholders is done visually through the View Layout Editor.

The following is an example of a view template.

<!-- Template Start: CCViewBasic.swt -->

<!------------ Page Title ------------->


<swe:this property="Title"/>


<!----------- Salutation applet and Search Applet, table 3.1 ------>

<table border="0" cellspacing="0" cellpadding="1" width="100%">


<td width="66%"><swe:applet id="101"/>&nbsp;</td>

<td width="33%"><swe:applet id="201"/>&nbsp;</td>



<!-------- End Salutation applet and Search Applet, table 3.1 ------>

<!------------ Regular Applet(s) ---->

<swe:for-each count=5 iteratorName="currentId" startValue="1">

<swe:applet id="swe:currentId"/>


<!------------ Special Applet(s) ---->

<swe:for-each count=3 iteratorName="currentId" startValue="11">

<swe:applet id="swe:currentId"/>


<!-- Template End: CCViewBasic.swt -->

Notice that each <swe:applet id=x> tag acts as a placeholder for an applet's location in the view template. This same view template can be used to show different views by mapping the view's applets to these placeholders. In the default view templates shipped with Siebel applications, swe:applet tags with IDs of 101 and 201 are used to show the salutation and search applets at the top of the views. The IDs 1 through 10 are used to show the main applets in the view, and the IDs starting with 11 are used to show some special applets that appear at the bottom of some views.

About HTML Frames in View Templates

HTML frames can be used in View templates to create a frame definition document to show the Applets in the View. SWE will refresh these frames only when one or more of the Applets contained in a frame has new data.

NOTE:  You can use frames in a View template only if frames are also used in the container page and there is a separate frame in the container page for the View.

In a View template, applets can be grouped into separate frames, although this is considered a non-standard practice except in cases where independent refresh or independent scrolling is a significant requirement. One situation where frames are required in the content area is when displaying an explorer View, in which a tree applet occupies a frame on the left and the corresponding list applet occupies the frame on the right. Another situation requiring frames is when the user activates a search, at which time a Search frame, and subsequently a Results frame, are activated in the right portion of the content area.

The following shows the implementation details of frameset definitions in View templates:

  • When placing Applets into frames you need to make sure that at least one <swe:applet> tag within a frame gets mapped to an Applet in the repository. Otherwise, empty frames will occur.
  • When a <swe:frame> block contains a <swe:applet> tag, its type attribute should be set to Applet.

Given below is an example of a view template that uses frames:

<!-- CCView_33_66_Frame.swt start -->

<swe:frameset htmlAttr="cols='33%,66%'' border='1' frameborder='Yes'">

<!-- Column 1 Applets -->

<swe:frame type="Applet" htmlAttr="marginheight='0' margin width='0' scrolling='Auto'">

<swe:for-each count=10 iteratorName="currentId" startValue="101">

<swe:applet id="swe:currentId" hintText="Applet" var="Parent">

<!--start applet-->

<swe:this property="FormattedHtml"/>

<!--end applet-->




<!-- Column 2 Applets -->

<swe:frame type="Applet" htmlAttr="marginheight='0' marginwidth='0' scrolling='Auto'">

<swe:for-each count=10 iteratorName="currentId" startValue="201">

<swe:applet id="swe:currentId" hintText="Applet" var="Parent">

<!--start applet-->

<swe:this property="FormattedHtml"/>

<!--end applet-->





<!-- CCView_33_66_Frame.swt end --> </HTML>

Configuring Siebel eBusiness Applications