Datasheet

734
Figure 1-2:
The Insert
Master-
Detail Page
Set dialog
box.
7. In 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 to display details for a given
employee. For example, we selected the last_name field to serve as the
link to the detail page for each record.
8. In 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 specified detail.php. Dreamweaver automatically
uses this name when it creates the detail page.
Building Master and Detail Pages in One Operation (PHP, ASP, JSP, ColdFusion)
53_610770-bk09ch01.indd 73453_610770-bk09ch01.indd 734 5/6/10 1:20 PM5/6/10 1:20 PM