The Nested Repeat Region Wizard can display records from two related tables (master and detail tables) in an organized manner. The wizard uses the foreign key A foreign key is a field from a database table that refers to (or targets) a specific key, usually the primary key, in another table. This is a convenient way of logically linking information from related tables in the same database. For instance, a table that stores information about products can contain a foreign key that references the primary key field in a table that stores manufacturers. This way, each product has an associated manufacturer – its associated foreign key points to the unique identifier of the manufacturer. Please note that the foreign key is not unique, but the referenced field (the primary key in the referenced table) usually is. to determine which detail record A database row from the detail table. The detail table is defined by a many-to-one relation to another table (the master table) belongs to which master record A database row from the master table. The master table is defined by a one-to-many relation to another table (the detail table), and lists them accordingly.
It will add all the required elements into the page, like tables, recordsets and server behaviors. You can also create these elements by hand, and then use the Nested Repeat Region server behavior to achieve the same result.
The Nested Repeat Region Wizard is accessible from two locations:
This wizard has two steps. Instructions about the correct configuration are given below.
To set the dialog box options for the first step of the wizard, read the instructions below:
To set the dialog box options for the second step of the wizard, read the instructions below:
In the Repeat style radio group select the method by which the detail records will be displayed: List (comma-separated list) or Sub-table (tree-like structure).
The image below this radio group gives a preview of how the list will look like. In the image above, you can see the sub-title style, and in the next image, the list style:
Click Finish when you are done configuring the wizard.
In the Dreamweaver page, the result should look something like this:
Note: If two nested repeat regions are used on the same page, you must create a separate recordset for each one. If you try to use the same recordset for both you will be prompted with an error message.
Related Topics