Siebel Interactive Designer API Reference > Pageset Functions > BuildTarget >

Text Output Targets


When the type argument for the BuildTarget function is set to TEXT, a text output target control is created.

The syntax used to create a text output target is:

BuildTarget("TEXT",window,name,[formatFunction])

Argument
Description
name
Column in a Configuration table, column in a Feature table, or a text UI control.
formatFunction
Optional. A pointer to a function used to format the display of the value that is often used to format numeric values.

Example

The following sample code creates a text output target that displays an interior color selection. When the user selections match a valid configuration, a value in the DESC column is returned and displayed in the text output target. Note that this column is located in the Feature table COLORINT.

<SCRIPT>

document.write(ISS.BuildTarget("TEXT", window,"COLORINT.DESC"));

</SCRIPT>

The following sample code displays a price text as a number with two decimal places.

<SCRIPT>

document.write(ISS.BuildTarget("TEXT", window,"PRICE", ISS.ConvertFloatToCurrency));

</SCRIPT>


 Siebel Interactive Designer API Reference 
 Published: 18 April 2003