Configuring Siebel Business Applications > About Siebel Web Templates and Siebel Tags >

About View Web Templates


Siebel CRM uses a view web template to associate a view web template with a view. A view web template uses the swe:applet tag to define placeholders for applets. You can use the Web Layout Editor to map an applet to each placeholder.

Example Code of a View Web Template

The following is code is from an example view web template:

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

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

<title>

<swe:this property="Title"/>

</title>

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

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

<tr>

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

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

</tr>

</table>

<!-------- 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"/>

</swe:for-each>

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

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

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

</swe:for-each>

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

Applet ID Tags

Each swe:applet id=x tag is a placeholder that determines the location for an applet in the view web template. To display different views, you can map applets that currently exist in the view to placeholders in this same view web template. View web templates that come predefined with Siebel CRM include the following swe:applet tags:

  • Tags with IDs of 101 and 201. Displays the salutation and search applets that Siebel CRM displays at the top of the views.
  • Tags with IDs 1 through 10. Displays the main applets in the view.
  • Tags with IDs that begin with 11. Displays special applets that Siebel CRM displays at the bottom of some views.

HTML Frames in a View Web Template

To display applets in a view, you can use HTML frames in view web templates and create a frame definition document. The Siebel Web Engine refreshes these frames only if one or more of the applets that the frame contains includes new data.

The following situations require HTML frames in the content area of a view web template:

  • If a tree applet occupies a frame on the left and the corresponding list applet occupies the frame on the right in an explorer view.
  • If the user does a search. Siebel CRM requires a search frame and a results frame in the right portion of the content area.

For more information, see Guidelines for Naming a Siebel Web Template.

Example Code for Using HTML Frames in a View Web Template

The following is an example of code that uses HTML frames in a view web template:

<!-- 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-->

</swe:applet>

</swe:for-each>

</swe:frame>

<!-- 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-->

</swe:applet>

</swe:for-each>

</swe:frame>

</swe:frameset>

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

Configuring Siebel Business Applications Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.