includes several application objects that help you create web application pages quickly and easily. Next, you’ll use an application object to create a master-detail page set. Application objects create layout and server-side scripts for many common web applications. After you select a few options, the Master-Detail Page Set application object generates the forms and scripting for both the master list and the page containing the details for you. Additionally, the application object creates record navigation and a record counter in the master page. Save your document (File > Save). In the Document window the locationMaster file should still be open, place the insertion point after the “Rental Locations” text, then press Enter or Return to set where the live object will be inserted. Insert the data, by doing one of the following: In the Insert bar’s Application tab, click the Master Detail button or drag it to the document. Choose Insert > Application Objects > Master Detail Page Set. The Insert Master Detail Pages Set dialog box appears
In the dialog box, in the Recordset pop-up menu, select rsLocations.
In the Master Page Fields list, select CODE, then click the minus (-) button
to remove it from the list of data which appears in the master page list.
Remove all the fields in the Master Page Fields list except LOCATION_NAME, CITY,
and STATE_COUNTRY.
In the Link To Detail From pop-up menu, select LOCATION_NAME.
To view the detail page for a location, a link needs to be created for each
location that appears in the master list. When a site visitor clicks the Location
Name in the master page the appropriate detail page will open.
In the Pass Unique Key pop-up menu, accept the default value, Code and make
sure Numeric is not checked.
The CODE field is the unique key or primary key in the Locations table. This
field contains a unique three letter code for each record.
In Show, accept the default setting to display ten records at a time.
In Detail Page Name, click Browse, then in the Select File dialog box, navigate
to the locationDetail file in your site folder.
Click OK.
In the Detail Page Fields, set the fields you want to appear in the detail page,
by doing the following:
In the Detail Page Fields list, select CODE, then click the minus (-) button.
Select REGION_ID, then click the minus (-) button.
Click OK.
updates the master and detail pages, and adds all the necessary
server scripts and queries for both the list page and the detail page.
The master list page updates. It includes a table for the database data, a table for recordset page navigation, and a record set counter.
.
1 2 3
5 6 7
8 9 10
11 12 13
14 15 16
17 18 19
20 21 22
23 24 25
26 27 28
29 30 31
32 34 35
36 37 38
39 40 41
42 43 44
45 46 47
48 49 50
51 52 53
54 55 56
57 58 59
60 61 62
63 64 65
66 67 68
69 70 71
72 73 74
75 76 77
78 79 80
81 82 83
84 85 86
87 88 89
90 91 92
93 94 95
96 97 98
99 100 101