Page 18 of 22PREVNEXT

Design a form based on an XML schema

Binding column controls in repeating table

The Repeating Table Binding dialog box makes quick work of binding table columns to data fields.
Callout 1 Select each field that you want to appear in a table column.
Callout 2 Add each selected field to the Columns in table list.
Callout 3 In the form, the table column controls, which are bound to the selected fields, are added all at once. They are arranged in the order of your selection.

The Repeating Table control has some similarities to the Repeating Section control. It too contains other controls, but in a table format, with rows and columns. The way it repeats is that someone filling out the form can add as many rows to the table as needed.

The repeating table also has some unique functionality for binding controls.

To backtrack a little: In the Lesson 2 practice, you dragged controls from the Controls task pane and worked in the binding dialog box (which appears when you drag the control) to assign fields to each control.

Well, when you drag a Repeating Table control onto a form, the binding dialog box that appears turns into a small wizard that helps you select the data fields to which the table controls will bind. In that wizard, you can select multiple fields at once that will turn into columns with text boxes in the repeating table. You'll try this in the practice session.

Note     You'll notice the red asterisk next to some fields. This means the field is required; if a control is bound to a required field, it can't be left blank when a person fills out the form.

Page 18 of 22PREVNEXT