Adobe 38040334 - Dreamweaver CS3 User Manual page 566

Pc
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

See also
"About adding dynamic content" on page 564
"Define server variables" on page 559
Use a variable as a data source for a ColdFusion recordset
When you define a recordset for a page in the Bindings panel, Dreamweaver enters the name of the ColdFusion data
source in the
tag on the page. For more flexibility, you can store a data source name in a variable and use
cfquery
the variable in the
tag. Dreamweaver provides a visual method of specifying such a variable in your
cfquery
recordsets.
1
Make sure a ColdFusion page is active in the Document window.
In the Bindings panel, click the Plus (+) button and select Data Source Name Variable from the pop-up menu.
2
The Data Source Name Variable dialog box appears.
3
Define a variable, and click OK.
When defining the recordset, select the variable as the Data Source for the recordset.
4
In the Recordset dialog box, the variable appears in the Data Source pop-up menu along with the ColdFusion data
sources on the server.
5
Complete the Recordset dialog box, and click OK.
Initialize the variable.
6
Dreamweaver does not initialize the variable for you so that you can initialize it how and where you want. You can
initialize the variable in the page code (before the
or application variable.
Define server variables
You define server variables as sources of dynamic content for use within a web application. Server variables vary from
document type to document type and include form variables, URL variables, session variables, and application
variables.
Server variables can be accessed by all clients that access the server, and by any applications running on the server.
The variables persist until the server is stopped.
See also
"Adding dynamic content to pages" on page 564
"URL parameters" on page 533
"HTML form parameters" on page 532
"ColdFusion server variables" on page 545
Define ColdFusion server variables
1
Open the Bindings panel (Window > Bindings). In the Server Variable dialog box, enter the name of the server
variable, and click OK.
Click the Plus (+) button and select the server variable from the pop-up menu.
2
3
Enter the name of the variable, and click OK. The ColdFusion server variable appears in the Bindings panel.
tag), in an include file, or in some other file as a session
cfquery
September 4, 2007
DREAMWEAVER CS3
559
User Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents