Chapter 18: Building Custom CFAPI Tags
323
query.setData( iRow, iFirstName, "John" ) ;
query.setData( iRow, iLastName, "Smith" ) ;
iRow = query.addRow() ;
query.setData( iRow, iFirstName, "Jane" ) ;
query.setData( iRow, iLastName, "Doe" ) ;
Parameters:
name
— The name of the query to add to the template
columns
— The column names to be used in the query
Returns:
The Query that was added to the template.
Throws:
IllegalArgumentException - if the name parameter is not a valid CFML variable
name
See Also:
Query.addRow
,
Query.setData
writeDebug
public void writeDebug(String output)
Writes text output into the debug stream. This text is only displayed to the end-
user if the tag contains the DEBUG attribute (you can check for this attribute using
the Request.debug member function).
The following example checks to see whether the DEBUG attribute is present, and
if it is then it writes a brief debug message:
if ( request.debug() )
{
response.writeDebug( "debug info" ) ;
}
Parameters:
output
— The text to output
See Also:
Request.debug
Summary of Contents for COLDFUSION 4.5-DEVELOPING WEB
Page 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Page 14: ...xiv Developing Web Applications with ColdFusion...
Page 26: ...xxvi Developing Web Applications with ColdFusion...
Page 34: ...8 Developing Web Applications with ColdFusion...
Page 70: ...44 Developing Web Applications with ColdFusion...
Page 84: ...58 Developing Web Applications with ColdFusion...
Page 114: ...88 Developing Web Applications with ColdFusion...
Page 148: ...122 Developing Web Applications with ColdFusion...
Page 174: ...148 Developing Web Applications with ColdFusion...
Page 208: ...182 Developing Web Applications with ColdFusion...
Page 244: ...218 Developing Web Applications with ColdFusion...
Page 274: ...248 Developing Web Applications with ColdFusion...
Page 288: ...262 Developing Web Applications with ColdFusion...
Page 300: ...274 Developing Web Applications with ColdFusion...
Page 350: ...324 Developing Web Applications with ColdFusion...
Page 362: ...336 Developing Web Applications with ColdFusion...