Bookshelf Home | Contents | Index | PDF |
Configuring Siebel eBusiness Applications > Overview of Web Templates and Siebel Tags > About Siebel Templates > About View TemplatesA 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 -------------> <!----------- Salutation applet and Search Applet, table 3.1 ------> <table border="0" cellspacing="0" cellpadding="1" width="100%"> <td width="66%"><swe:applet id="101"/> </td> <td width="33%"><swe:applet id="201"/> </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 About HTML Frames in View TemplatesHTML 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:
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'"> <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"> <swe:this property="FormattedHtml"/> <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" |
Configuring Siebel eBusiness Applications |