Dreamweaver

Create a dynamic table

The following example illustrates how the Repeating Region server behavior is applied to a table row, and specifies that nine records are displayed per page. The row itself displays four different records: city, state, street address, and ZIP code.

Repeating Region server behavior applied to a table row

To create a table such as the one in the previous example, you must create a table that contains dynamic content, and apply the Repeating Region server behavior to the table row containing the dynamic content. When the page is processed by the application server, the row is repeated the number of times specified in the Repeating Region server object, with a different record inserted in each new row.

Note: The Dynamic Table server object is not available when using ASP.NET document types.
  1. Do one of the following to insert a dynamic table:
    • Select Insert > Data Objects > Dynamic Data > Dynamic Table to display the Dynamic Table dialog box.

    • From the Data category of the Insert bar, click the Dynamic Data button and select the Dynamic Table icon from the pop-up menu.

  2. Select the recordset from the Recordset pop‑up menu.
  3. Select the number of records to display per page.
  4. (Optional) Input values for the table border, cell padding, and cell spacing.

    The Dynamic Table dialog box retains the values you enter for table borders, cell padding, and cell spacing.

    Note: If you are working on a project that requires several dynamic tables with the same appearance, enter the table layout values, which further simplifies page development. You can adjust these values after inserting the table by using the table Property inspector.
  5. Click OK.

    A table and placeholders for the dynamic content defined in its associated recordset are inserted into the page.


    In this example, the recordset contains four columns: AUTHORID, FIRSTNAME, LASTNAME, and BIO. The table’s heading row is populated with the names of each column. You can edit the headings using any descriptive text, or replace them with representative images.