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.
|
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:
|
<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>