Siebel Developer's Reference > SWE Tags >

swe:control


Purpose

Provides a placeholder in an Applet Web Template for a Control object, or a List Column object.

Usage

<swe:control id="1" property="xxx" />

Attributes

Id. Maps an applet child object, Control, or List Column to this placeholder tag.

Property. This is optional. If present, this attribute indicates the property of the control or list item that should be rendered on the Web page. If property is not specified, this indicates that the tag shows the body only if the control ID is mapped. This attribute should only be used in singleton tags.

The following values can be used for the property attribute.

Value
Description

FormattedHtml

Displays the data for a control or list item in HTML.

DisplayName

Shows the caption property of the control or list item.

ListHeader

Shows a column header for list columns that includes links for sorting the column. This property value should be used only with swe:control tags that are mapped to list columns in a Base template for List Applets.

RequiredIndicator

Shows an icon if the control is Required. (For example, the user needs to enter a value for the control before the record can be committed to the database.) The icon to be used is defined in the configuration file for the application under the SWE section, using the parameter RequiredIndicator.

NOTE:  When the property attribute is not specified, the property can be displayed within the body of the <swe:control> tag using the <swe:this> tag.

Restrictions

Can be used in Applet Web Templates of type Base, Edit, New, or Query.

swe:control cannot be nested; for example, the following usage is not supported:

<swe:control id = "1"> <!-- the "parent" control

<swe:this property = "displayname"/>

<swe:this property = "formattedHtml"/>

<swe:control id = "2" property="formattedHtml">

<!-- A child control gets context or

<!-- inherits properties from its "parent"

</swe:control>         <!-- End of parent -->

Siebel Developer's Reference