Siebel Interactive Designer API Reference > Pageset Functions > BuildTarget >

Image Output Targets


When the value for the type argument for the BuildTarget function is PICT, an image output target is created. The image output target also uses optional Width and Height arguments.

The syntax used to create an image output target is:

BuildTarget("PICT",window,name[,width,height])

Argument
Description

name

Column in a Configuration table or Feature table that contains the name of an image file.

width

Optional. Specifies the width of the image, in pixels.

height

Optional. Specifies the height of the image, in pixels.

Argument Notes

  • If values for the width and height arguments are not defined, the application defaults to displaying the image at the actual size specified by the image file. In some browsers, rendering speed can be improved by explicitly specifying dimensions with the Width and Height arguments.
  • The path to an image file is relative to the pg subdirectory.
Example

The following sample code creates an image output target that displays the file listed in the IMG column of a Configuration table:

<SCRIPT>

document.write(ISS.BuildTarget("PICT", window,"IMG"));

</SCRIPT>

When the user selections match a valid configuration, the value in the IMG column is returned. This value is the name of the image file that appears in the output target.

Siebel Interactive Designer API Reference