Chapter 18: Building Custom CFAPI Tags
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
columns
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,
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() )
{
}
Parameters:
output
See Also:
Request.debug
— The name of the query to add to the template
— The column names to be used in the query
Query.setData
response.writeDebug( "debug info" ) ;
— The text to output
323
Need help?
Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?
Questions and answers