Siebel Employee Relationship Management Administration Guide > Configuring Siebel ERM >

Setting Up Layout Controls for ERM


To activate user layout control, Siebel ERM includes a SWE tag <swe:layout> and supporting configuration file settings and applet control objects in Siebel Tools.

NOTE:  Siebel Web Template Files (.swt) are located in the webtempl directory of your Siebel Server installation directory.

The swe:layout Tag

The end user can reorder and hide applets. The swe:layout tag is used to conditionally determine the HTML content that appears based on the current view's layout mode and the user's layout preferences.

Usage

<swe:layout viewDisplayMode="xxx" appletDisplayMode="xxx" appletDisplaySize="xxx" />

Attributes

viewDisplayMode: This is optional. It can have values Layout or Show. If viewDisplayMode is Layout, the tag is only shown if the user is in Edit View Layout mode. If viewDisplayMode is Show, the tag is only shown if the user is not in Edit View Layout mode. If viewDisplayMode is not specified, the tag is shown whether or not the user is in Edit View Layout mode.

appletDisplayMode: This is optional. It can have the value Show or Hide. If appletDisplayMode is Show, the tag is shown only if the applet is visible. If appletDisplayMode is Hide, the tag is shown only if the applet is hidden. If appletDisplayMode is not specified, the tag is shown regardless of applet visibility.

appletDisplaySize: This is optional. It can have the value of Min or Max. If appletDisplaySize is Min, the tag is shown only if the applet is minimized. If appletDisplaySize is Max, the tag is shown only if the applet is maximized. If appletDisplaySize is not specified, the tag is shown regardless of applet display size.

Restrictions

Restrictions can only be used only within Applet Web Templates. At least one of the attributes must be specified.

Examples

The following examples show sample SWE tags and describes how the HTML content appears.

<swe:layout appletDisplayMode="Show">

This text is shown only when the applet is visible, whether or not the user is in Edit View Layout mode.

</swe:layout>

<swe:layout viewDisplayMode="Show">

This text is shown only when the user is not in Edit View Layout mode.

<swe:layout appletDisplayMode="Show" appletDisplaySize="Max">

This text is shown only when the user is not in Edit View Layout mode and the applet is visible and the applet is maximized.

</swe:layout>

<swe:layout appletDisplayMode="Hide">

This text is shown only when the user is not in Edit View Layout mode and the applet is hidden.

</swe:layout>

</swe:layout> <!-- viewDisplayMode="Show" -->

Applet Controls

Each applet that will be moved or hidden has controls that render the appropriate image (for example, Move Down image) and call the appropriate InvokeMethod (for example, MoveAppletDown). The controls include:

There are also general layout controls that allow the user to perform certain operations (through InvokeMethods). These controls include edit the view layout, show the view layout, reset the default layout, show all applets, hide all applets, minimize all applets, maximize all applets. These layout controls are typically added to the first applet in a view. General layout controls include:

For more information about modifying SWE templates, see Siebel Tools Reference.


 Siebel Employee Relationship Management Administration Guide 
 Published: 18 April 2003