Lookup Control of the Forms File
If you set the class attribute of the control tag to lookup, then you must specify the following tags in the control tag:
source. Describes the list values for this lookup control. The source tag includes the following attributes:
type. Contains the ID of an object that Siebel CRM Desktop uses in this control.
field. Not used.
format. Defines the mask for this field output. For example:
format=":[:(First Name) :]:[:(Last Name):]"
resource_id. Defines the ID of the description for the lookup dialog box that the lookup_view_defs.xml file describes. For more information, see Customizing the SalesBook Control.
field. The field of an object that stores the ID of the object that the user chooses in a lookup object.
Example Code of the Lookup Control
The following code illustrates usage of the lookup control:
<control id="0x20100" class="lookup">
<source type="All Items" format=":[:(FirstName) :]:[:(LastName):]"
resource_id="lookup:all_types"/>
<source type="Contact" format=":[:(FirstName) :]:[:(LastName):]"
resource_id="lookup:contacts"/>
</control>