MACROMEDIA DREAMWEAVER MX 2004-USING DREAMWEAVER Use Manual page 638

Hide thumbs Also See for DREAMWEAVER MX 2004-USING DREAMWEAVER:
Table of Contents

Advertisement

Creating the links to the detail page (ColdFusion)
After adding the dynamic table to the master page , you must create links that open the detail
page. This section describes how to create the links. The next section describes how to modify the
link so that it also passes the ID of the record that the user selects. The detail page will use this ID
to find the requested record in the database and display it.
To create links to the detail page:
In the repeated row in the dynamic table, select the text or image that will serve as a link.
1
In the following example, the {rsLocations.LOCATION_NAME} placeholder is selected. The
links will be applied to the location names in the column.
In the Property inspector, click the folder icon beside the Link text box.
2
Browse and select the detail page.
3
The detail page appears in the Link text box in the Property inspector.
In the dynamic table, the selected text appears linked. When the page runs on the server, the
link is applied to the text in every table row.
The next step is to create a URL parameter that passes the record ID to the detail page.
Creating a URL parameter for the links (ColdFusion)
The links in the dynamic table not only have to open the detail page, they must pass the ID of the
record the user selected. The detail page uses this ID to find the requested record in the database
and displays it.
The record ID is passed to the detail page in a URL parameter. For more information, see
parameters" on page
This section describes how to create a URL parameter that passes a record ID to the detail page.
To create the URL parameter:
On the master page, select the link in the dynamic table.
1
If Live Data view is turned on, select the link in the first row.
In the Link text box in the Property inspector, add the following string at the end of the URL:
2
?recordID=#recordsetName.fieldName#
The question mark tells the server that what follows is one or more URL parameters. The word
recordID is the name of the URL parameter (you can make up any name you like). Make a
note of the name of the URL parameter because you'll use it in the detail page later.
638
Chapter 40: Building ColdFusion Applications Rapidly
518.
"URL

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-USING DREAMWEAVER and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents