Datasheet
Building Master and Detail Pages in One Operation
694
8. From the Pass Unique Key drop-down list, select which field contains
the values that you want to pass on to the detail page so it can identify
the records.
Typically, you select the key field that ends in ID. This key field tells the
detail page which record to display for the user. For our example, we
selected the
employee_id field.
9. Specify the number of records that you want to show at one time on
the master page.
In the example, we chose to show 10 records at a time.
10. In the Detail Page Name text box, enter a name for the detail page or
click the Browse button to select an existing file.
For the example, we entered
detail.php. Dreamweaver will automati-
cally use this name when it creates the detail page.
11. In the Detail Page Fields area, select which records you want to
appear on the master page.
Click the plus (+) button and minus (–) button to change the fields that
appear on the detail page.
Typically, more fields appear on the detail page than the master page.
For the example, we selected all the fields listed in Table 1-1.
Figure 1-2 shows the configuration of the Insert Master-Detail Page Set
dialog box based on the example values.
Figure 1-2:
The Insert
Master-
Detail Page
Set dialog
box for the
Employee_
Recordset.
52_781428 bk09ch01.qxp 6/19/06 11:46 AM Page 694