Operation Manual

545
USING DREAMWEAVER
Making pages dynamic
Last updated 3/28/2012
3 Define a variable, and click OK.
4 When defining the recordset, select the variable as the data source for the recordset.
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.
6 Initialize the variable.
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
cfquery tag), in an include file, or in some other file as a session 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.
More Help topics
Adding dynamic content to pages” on page 549
URL parameters” on page 624
HTML form parameters” on page 623
ColdFusion server variables” on page 534
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.
2 Click the Plus (+) button and select the server variable from the pop-up menu.
3 Enter the name of the variable, and click OK. The ColdFusion server variable appears in the Bindings panel.
The following table lists the built-in ColdFusion server variables:
Variable Description
Server.ColdFusion.ProductName ColdFusion product name.
Server.ColdFusion.ProductVersion ColdFusion version number.
Server.ColdFusion.ProductLevel ColdFusion edition (Enterprise, Professional).
Server.ColdFusion.SerialNumber Serial number of currently installed version of ColdFusion.
Server.OS.Name Name of operating system running on the server (Windows XP, Windows 2000, Linux).
Server.OS.AdditionalInformation Additional information about installed operating system (service packs, updates).
Server.OS.Version Version of installed operating system.
Server.OS.BuildNumber Build number of installed operating system.