Installation guide
4.4.2 CFCONTENT
Both ColdFusion and BlueDragon support an available FILE attribute for CFCONTENT, to
name a file whose content should be sent to the browser (with its mime type optionally
indicated with the available
TYPE attribute). BlueDragon takes this a step further and lets
you send the value of a variable, using a new OUTPUT attribute.
An example of using it might be when a
CFQUERY retrieves a column of binary type from
a database (perhaps a graphic). Assuming the variable is
myquery.mygraphic, you could
then send that to the browser in a single step with:
<CFCONTENT OUTPUT="#myquery.mygraphic#" type="image/jpeg">
4.4.3 CFDUMP
The
CFDUMP tag VAR attribute is required in ColdFusion, but is optional in BlueDragon; if
omitted, variables in all scopes (except the
CGI and SERVER scopes) are displayed:
<CFDUMP VAR=”#SESSION#”> <!--- display SESSION variables --->
<CFDUMP> <!--- display variables in all scopes but cgi, server --->
Of course, it’s permissible to dump the CGI and SERVER scopes by specifying either of
them in the
VAR attribute. They’re just not dumped automatically with the special form of
CFDUMP.
The
CFFDUMP output for query result sets shows additional information about the query
including the datasource name, the SQL processed, the execution time, the number of
records found, and the size in bytes.
BlueDragon’s dump also can show all the records in a query resultset, as well as
expanded information about XML objects. This is controlled with an optional
VERSION
attribute, which takes two values:
LONG and SHORT. The default for query result sets is
LONG. It applies to CFDUMP both with and without use of the VAR attribute, as described
above.
In the SHORT version, a dump of query result set will not show the actual records from the
query, but will show other useful information about the query (records found, execution
time, SQL string, etc.).
The dump of an XML object will work similarly to the long and short versions available
in ColdFusion MX. Whereas in ColdFusion MX, you would click on the displayed XML
object to cause it to switch between short and long versions, in BlueDragon you choose
the alternative using the
VERSION attribute. The default is SHORT.
Currently, only query result sets and XML documents are affected by the
VERSION attrib-
ute, and it has no effect for other variable types (they can be dumped, but the result is not
varied by specification of the
VERSION attribute). Similarly, the VERSION attribute setting
BlueDragon 6.1 CFML Compatibility and Reference Guide 16