Configuring an HTML Type for an Applet Mode

You use the Mode attribute of the swe:htmltype tag to define a custom format for the Base, Edit, New, and Query applet modes. If you define a mode, then the Siebel Web Engine uses the format you define only if the current show mode matches the value defined for this attribute. For example, assume you create a new HTML type named SiebelText to display a control that Siebel CRM displays in the following ways:

  • As a label and a text field in Edit mode

  • As read-only text in Base mode

In this example, you use the following code:

<swe:htmltype name="SiebelText">
  <div od-property="Data" type="Text"/>
</swe:htmltype>
<swe:htmltype name="SiebelText" mode="Edit">
  <div od-property="DisplayName"/>:&nbsp;<div od-property="Data" type="Text"/>
</swe:htmltype>

For more information, see Options to Control How the User Creates, Edits, Queries, and Deletes CRM Data.