FieldValue Tag Use

Used In

HTML Layout Pages and Page Templates.

The FieldValue tag can be used either by itself, within a Record tag or within a Table tag.  If the FieldValue tag is used by itself, the generated code will incorporate each FieldValue within a Presentation Layer control tag for a record.  To optimize the application, you can enclose the FieldValue code generation tag within a Record code generation tag described later.  Enclosing the FieldValue tag within a Record tag is faster because the FieldValue tags can inherit properties from the Record tag’s properties.

Code Generation Tag Attributes

Attribute

Required

Description

Name

Yes

The name of this tag.  This name must be unique within the file and cannot contain spaces.

Type

No

The Type specifies how the field will be displayed.  The type can be changed in the tag’s Properties dialog.  The supported types are:

CheckBox

Generates the value of the field as a checkbox.

DropDownList

Generates the current and possible values as a drop down list.

FileUpload

Generates the value of the field as a file upload control including a file browse button.

HyperLink

Generates a hyperlink.  The URL can be specified in the tag’s Properties dialog.

Image

Generates the value of the field as an image component.  This is typically used for binary fields.

Label

Generates value of the field as a Label Presentation Layer control tag.  The label may include HTML formatting including being surrounded by a <SPAN> HTML tag. The resulting value is enclosed in a <SPAN> tag.  You can also manipulate the text programmatically in the Presentation Layer code.

Literal

Generates the value of the field as a Literal Presentation Layer control tag without adding any HTML formatting. The resulting value is not enclosed in a <SPAN> tag.  You can manipulate the text programmatically in the Presentation Layer code.

RadioButtonList

Generates the current and possible values as a group of radio buttons.

TextBox

Generates a text box or a text area.

Examples

<GEN:FieldValue Name=”FirstName”/>

<GEN:FieldValue Name=”LastName” Type=”TextBox”/>

<GEN:FieldValue Name=”IsMarried” Type=”CheckBox”/>

<GEN:FieldValue Name=”EmployeeNumber” Type=”Hyperlink”/>

<GEN:FieldValue Name=”EmployeePhoto” Type=”Image”/>

Optimized version:

     <GEN:Record Name=”EmployeeRecord”/>
          <GEN:FieldValue Name=”FirstName”/>
          <GEN:FieldValue Name=”FirstName” Type=”TextBox”/>
          <GEN:FieldValue Name=”IsMarried” Type=”CheckBox”/>
          <GEN:FieldValue Name=”EmployeeNumber” Type=”Hyperlink”/>
          <GEN:FieldValue Name=”EmployeePhoto” Type=”Image”/>
     </GEN:Record>

See Also

FieldValue Tag