Setting the table to dynamically grow

In a form that has a flowable layout, you may not know how much data the data source contains; therefore, you cannot specify how many rows the table should have. You have to set the table to be dynamic. To do this, you include only one body row that is set to repeat, depending on how much data there is in the data source.

  1. Drag to select the rows that are below the first row.

  2. Select Table > Delete > Row.

  3. In the Hierarchy palette, select Table1.

  4. Select Insert > Wrap in Subform.

    This action creates a section in the form that contains the table. You need to separate this section from the remainder of the form to make it dynamically grow to fit the data.

  5. With the (untitled Subform) selected in the Hierarchy palette, in the Object palette, click the Subform tab and, in the Content list, select Flowed.

  6. Rename the (untitled Subform) to Table .

  7. In the Hierarchy palette, select HeaderRow.

  8. In the Object palette, click the Binding tab and select Repeat Row For Each Data Item.

    Now you need to set the entire form to flow.

  9. In the Hierarchy palette, select the PurchaseOrder subform.

  10. In the Object palette, click the Subform tab and, in the Content list, select Flowed.

Setting the entire form to flow, formats each subform in the form, one after another, leaving no space between them.

Click to continue: Fixing the calculation for the Total field

// Ethnio survey code removed