This section describes how to create a master page that lists database records. You can use a dynamic table to list the records on a ColdFusion page.
Before you start, make sure you define a ColdFusion data source for your database. For more information, see Database Connections for ColdFusion Developers.
Select File > New > Dynamic, select ColdFusion, and click Create. A blank ColdFusion page opens in Dreamweaver.
In the Bindings panel, click the Plus (+) button, select Recordset (Query), and complete the Recordset dialog box. For more information, click the Help button in the dialog box. If you want to write your own SQL statement, click the Advanced button to open the advanced Recordset dialog box.
Make sure the recordset contains all the table columns you need to create your dynamic table. The recordset must also include the table column containing the unique key of each record--that is, the record ID column. In the following example, the CODE column contains information that uniquely identifies each record.
Typically, the recordset on the master page extracts a few columns from a database table while the recordset on the detail page extracts more columns from the same table to provide the extra detail.
The recordset can be defined by the user at runtime. For more information, see Building search/results pages (ColdFusion, ASP, JSP, PHP).
Place the insertion point where you want the dynamic table to appear on the page, then selection Insert > Application Objects > Dynamic Data > Dynamic Table.
The Dynamic Table dialog box appears.
Dreamweaver inserts a dynamic table on the page.
If you need help completing the dialog box, click the Help button in the dialog box.
If you dont want to show record IDs to users, you can delete the column from the dynamic table. Click anywhere on the page to move the focus to the page. Move the cursor near the top of the column in the dynamic table until the column cells are outlined in red, and then click to select the column. Press Delete to delete the column from the table.
The next step is to create the links to the detail page. See Creating the links to the detail page (ColdFusion).