Datasheet
Building Master and Detail Pages in One Operation . . .
692
Figure 1-2:
The Insert
Master-
Detail Page
Set dialog
box.
7. From the Link to Detail From drop-down list, select the field in the
recordset that you want to serve as the link to the detail page.
This field is the one that a user clicks on to display details for a given
employee.
For example, I selected the last_name field to serve as the link to the
detail page for each record.
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 of the table. This key field tells the
detail page which record to display for the user. For our example, we
selected the empid 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 specify detail.php. Dreamweaver automatically
uses 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.