Using the Data Property of the OD This Tag

The Data property of the <div od-property="<>"> is similar to a macro that casts the current, custom type to one of the intrinsic types, then inserts the FormattedHtml property of the intrinsic type. To use the Data property, you add a Type attribute to the <div od-property="<>"> tag. This Type attribute names the intrinsic type. For example, use the following code to create a new type named MiniButton. This code adds a special format to the Siebel Web Engine intrinsic type named Link:

<swe:htmltype name="MiniButton">
  <img SRC="images/btn_left.gif" border="0" height="15" width="2">
  <div od-property="<Data>" type="Link"/>
  <img src="images/btn_right.gif" border="0" height="15" width="2">
</swe:htmltype>

The following code outputs the same HTML as if the template included a separate <div od-property="<>"> tag, where the property is FormattedHtml and the HTML type of the control is the predefined Link type:

<div od-property="<Data>" type="Link">

You can only define a predefined type and not a custom type for the type attribute of a Data element.