Collection Element

Collection is a descriptor element for a FormField element. If the field represents a collection of items, Collection specifies metadata about the fields for each item.

Table Spec Fields:

  <Fields>
    <XMLField Name ="FIELDXML"/>
  </Fields>

FormFields element:

    <common:FormFields>
      <common:FormField FieldID="FIELDXML" Caption="Field XML" DataType="XML" Required="true">
        <common:Collection>
          <common:Fields>
            <common:FormField FieldID="FIELDA" Caption="Field A" DataType="String" />
            <common:FormField FieldID="FIELDB" Caption="Field B" DataType="String" />
          </common:Fields>
        </common:Collection>
      </common:FormField>
    </common:FormFields>

Value of FIELDXML field when saved:

<FIELDXML>
  <ITEM>
    <FIELDA>Text</FIELDA>
    <FIELDB>More text</FIELDB>
  </ITEM>
  <ITEM>
    <FIELDA>Some more text</FIELDA>
    <FIELDB>Even more text</FIELDB>
  </ITEM>
</FIELDXML>

The Collection field may also have values for several optional attributes:

        <common:Collection AllowSingleRowOnly="true"
                           EnablePaging="true"
                           GenerateUIModelClass="true"
                           IDField="FIELDA"
                           ItemsPerPage="3"
                           RenderStyle="Default"
                           SequenceFieldID="COLLECTIONA"
                           Serialization="Element"
                           ViewMode="Grid">

AllowSingleRowOnly Attribute

EnablePaging Attribute

GenerateUIModelClass Attribute

IDField Attribute

ItemsPerPage Attribute

RenderStyle Attribute

SequenceFieldID Attribute

Serialization Attribute

ViewMode Attribute