Share via


field Element

Defines one field for form library columns.

Type

  xsd:complexType

Structure

Name Description
aggregation (Optional attribute) Specifies how the XML Document Object Model (DOM) nodes returned from an XPath expression in the node attribute should be aggregated to obtain a single value for the document. Can either be an aggregation action or an indication of the particular element in the collection.
columnName (Required attribute) Identifies the column name in the SQL table (underlying the form list view).
maxLength (Optional attribute) Defines the length of the field in number of bytes.
name (Required attribute) Identifies the friendly name of the field to be used on the form list view.
node (Required attribute) Defines the XPath expression needed to extract the value of the specified property from the form's underlying XML document.
required (Optional attribute) Specifies whether this field accepts null values.
type (Required attribute) Identifies the standard XML Schema data type.
viewable (Optional attribute) Specifies whether this field should be added to the default view. Possible values "yes" and "no". The default value is "no".

Remarks

The field element is an optional element of the fields element.

Example

The following is an example of the field element:

  <xsf:listProperties>
   <xsf:fields>
      <xsf:field
         type="xsd:date"
         name="TravelDate"
         columnName="TravelDate" 
         required="yes"
         viewable="yes"
         node="TravelReport/Header/travelDate"
         aggregation="first"/>
   </xsf:fields>
</xsf:listProperties>