Configuring an HTML Type when Siebel CRM Cannot Call a Method
To display a different image depending on the state of a control or list column, you can define an optional attribute of the swe:htmltype tag, such as State. You can use the following states:
Disabled. For a control or list column that calls a method, when Siebel CRM cannot call the method on the record.
Required. For a control or list column that is required.
For example, to display a gray button when Siebel CRM cannot call a method, add the following code in addition to the default definition described earlier in this topic:
<swe:htmltype name="MiniButton" state="Disabled">
<img src="images/graybtn_left.gif" border="0" height="15" width="2">
<div od-property="<Data>" type="Link"/>
<img src="images/graybtn_right.gif" border="0" height="15" width="2">
</swe:htmltype>
Note how Siebel CRM handles calls differently:
If it cannot call a method with a predefined HTML type, then it does not display the control or list item.
With a custom HTML type, it always uses the format defined in the web template definition containing SWF content to display the control or list item. The HTML that it creates for the following Data property when it cannot call a method is the caption of the control or list item without any href tags:
<div od-property="<Data>" type="Link">
If Siebel CRM cannot call a method, then you can use a custom HTML type to hide a control or list column. For example, you can create the following empty swe:htmltype tag for the Disabled state:
<swe:htmltype name="MiniButton" state="Disabled"></swe:htmltype>
This code hides only the <div od-type="control"> tag or the <div od-property="<>"> tag that calls the FormattedHtml property.