Datasheet

Developing Master and Detail Pages Block by Block
698
4. Browse to and select the detail page.
5. Click the Parameters button to the right of the URL field.
The Parameters dialog box opens.
6. Click the plus (+) button to add a parameter.
This parameter tells the detail page which row to display. Select the key
value column as this parameter.
7. In the Name column, enter the column name.
For the Employee table (Table 1-1) example, the key field is
employee_id, as shown in Figure 1-6.
8. Click in the Value column and then click the Dynamic (lightning bolt)
button.
The Dynamic Data dialog box displays. This is where you select the
column from the recordset.
9. Expand the recordset, click the key field, and then click OK.
In this case, the key field is
employee_id.
After you click OK, the Parameters dialog box displays the new param-
eter and the code that places it into the page dynamically, as shown in
Figure 1-6.
10. Click OK to close the Parameters dialog box.
The URL field in the Select File dialog box is pre-populated with the new
parameter.
Each dynamic page type has different code that appears because each
programming language uses a slightly different syntax to display a URL
variable dynamically. Fortunately, because Dreamweaver is generating
the code for you, you don’t need to know the syntax differences.
11. Click OK to close the Select File dialog box.
You return to the Document window. The name of the detail page appears
in the Link field in the Properties inspector. The placeholder for the
dynamic content is now a link.
Figure 1-6:
Configuring
the URL
parameter
and its
recordset.
52_781428 bk09ch01.qxp 6/19/06 11:46 AM Page 698