Siebel Developer's Reference > Tags >

swe:idgroup


SWE supports having separate Siebel object to SWE tag mappings for various browsers. To support this feature we have introduced the concept of a namespace. A namespace is defined by using a new SWE tag called <swe:idgroup>.

Syntax

swe:idgroup

Usage

<swe:idgroup name="xxx">

Attributes

Name. The namespace ID.

For example, consider the following requirement. You want to show an applet with an DHTML based menu in an IE 5.0 browser, and with regular controls in place of the tasks performed by the menu with other browsers. All other controls in the applet are the same for all the browsers. You can have browser-specific mappings by enclosing those mappings within a <swe:idgroup> tag as shown below:

<swe:switch>

<swe:case condition="Web Engine User Agent, IsMemberVirtualUA, 'VirtualAgent:IE5'">

<swe:idgroup name="IE5">

<swe:menu> <!-- a new tag that we will be supporting -->

</swe:idgroup>

</swe:case>

<swe:default>

<swe:idgroup name="NonIE5">

<swe:control id="1" ..>

<swe:control id="2" ..>

</swe:idgroup>

</swe:default>

</swe:switch>

<swe:control id="3" ..>

<swe:control id="4" ..>

In this case, when applet controls are mapped to <swe:control> tags with IDs 1 and 2, they are marked with the namespace "NonIE5". There is a new attribute of "Applet Web Template Item" object called "Namespace" that stores the namespace value. When the mapping is done using the visual Web Layout editor in Siebel Tools, this attribute gets filled in automatically. The mappings to <swe:control> tags with IDs 3 and 4 are outside the namespace and hence this attribute will be NULL for these mappings.

The namespace can be applied to other Siebel object-to-SWE tag mapping, such as applets and page items.


 Siebel Developer's Reference 
 Published: 23 October 2003