Breadcrumb {international nav OR 10x10 spacer gif}
Add a Repeat Region server behavior

The Repeat Region server behavior lets you display multiple records from a recordset within a page. For example, if a search for Wildlife Project groups in the state of Pennsylvania yields three results, the Repeat Region server behavior allows you to display all three results of the search query on the results page. Without it, only the first record will be shown.

Any dynamic data selection can be turned into a repeated region. However, the most common regions are a table, a table row, or a series of table rows. On the results.cfm page that you've been building, the dynamic data is contained in a table comprised of a single row. You'll add a Repeat Region server behavior to this table. When the application server processes the page, the table will be repeated with a different record inserted into each new table.

1 Make sure the results.cfm page is open in the Document window.
2 Select the table containing the dynamic content by clicking once inside the table and clicking the <table> tag in the tag selector at the bottom of the Document window.
3 Select Window > Server Behaviors to display the Server Behaviors panel.
4 Click the plus (+) button and select Repeat Region.
The Repeat Region dialog box appears.

5 Select rs_wildlife from the Recordset pop-up menu.
6 Select the All Records option.
7 Click OK.
In the Document window, a thin, tabbed gray outline appears around the repeated region. When you test your application in a browser, the results page will display all of the records that match the URL parameter (U.S. state) specified by the user.
To Table of Contents Back to Previous document Forward to next document