Previous Topic

Next Topic

Book Contents

Resource

Purpose

Identifies a single resource to load.

Syntax

<RESOURCE
    [UUID="id"]
    [FILENAME="file"]
    [DESCRIPTION="text"]
    DATATYPE="TEXT|GIF|JPEG"
    [LANGUAGE="name"]
    [TEXT="text"]
    [DATA="data"]
[CLIENTID="id"]/>

Attributes

UUID="id"

Universally Unique Identifier; a string that identifies the component uniquely across all studies, study databases, and machines. Either a UUID or a FILENAME attribute is required unless you include explicit text or a data stream in the TEXT or DATA attribute.

FILENAME="file"

Name of the file in which the resource is enclosed. Either a UUID or a FILENAME attribute is required.

DESCRIPTION="text"

Description of the resource. Optional.

DATATYPE="TEXT|GIF|JPEG"

Type of data contained in the file: TEXT, GIF, or JPEG. Required.

LANGUAGE="name"

Code for the culture and language used to display text values. If you do not include a LANGUAGE attribute, the default is the installed default product locale. Required if text strings are translated (if a TRANSLATIONS element is included as a child of the study component definition).

Note: Relying on the default product locale is not recommended, because the default product locale can be changed.

TEXT="text"

Actual text of a resource for which the DATATYPE is TEXT. If you include actual text, do not specify a UUID or FILENAME attribute.

DATA="data"

Data stream that defines a resource for which the DATATYPE is GIF or JPEG. When the DATATYPE is GIF or JPEG, a UUID, a FILENAME, or a DATA definition is required. If you include a data stream, do not specify a UUID or FILENAME attribute.

CLIENTID="id"

String identifier, reserved for use by the Central Designer application.

Example 1

The following example illustrates two text resources.

<RESOURCE FILENAME="PAGE.HTML"
    UUID="b69ff18f=e466-11d1-9e5c-00a0c9769a33"
    DESCRIPTION="PAGE.HTML"
    DATATYPE="TEXT"/>

<RESOURCE FILENAME="FORM.HTML"
    UUID="b69ff190=e466-11d1-9e5c-00a0c9769a33"
    DESCRIPTION="FORM.HTML"
    DATATYPE="TEXT"/>

Example 2

The following example illustrates three graphical resources.

<RESOURCE FILENAME="SideArrow.GIF"
    UUID="56fc2652-ee9f-11d1-a744-00a0c9af7673"
    DESCRIPTION="SideArrow.GIF"
    DATATYPE="GIF"/>

<RESOURCE FILENAME="SideDocsGray.GIF"
    UUID="573c85d0-ee9f-11d1-a744-00a0c9af7673"
    DESCRIPTION="SideDocsGray.GIF"
    DATATYPE="GIF"/>

<RESOURCE FILENAME="SideDocsYellow.GIF"
    UUID="577a82f4-ee9f-11d1-a744-00a0c9af7673"
    DESCRIPTION="SideDocsYellow.GIF"
    DATATYPE="GIF"/>

Send Feedback