User Guide

316 Developing Web Applications with ColdFusion
int iCity = 1, iState = 2, iZip = 3 ;
// First row
int iRow = query.addRow() ;
query.setData( iRow, iCity, "Minneapolis" ) ;
query.setData( iRow, iState, "MN" ) ;
query.setData( iRow, iZip, "55345" ) ;
// Second row
iRow = query.addRow() ;
query.setData( iRow, iCity, "St. Paul" ) ;
query.setData( iRow, iState, "MN" ) ;
query.setData( iRow, iZip, "55105" ) ;
Parameters:
iRow — Row of data element to set (1-based)
iCol — Column of data element to set (1-based)
data — New value for data element
Throws:
IndexOutOfBoundsException — If an invalid index is passed to the method.
See Also:
getData, addRow
Interface Request
public abstract interface Request
Interface to a request made to a CustomTag. This interface includes methods for
retrieving attributes passed to the tag (including queries) and reading global tag
settings.
Method Summary
boolean attributeExists(String name)
Checks to see whether the
attribute was passed to this
tag.
boolean debug()
Checks whether the tag
contains the
DEBUG
attribute.
String getAttribute(String name)
Retrieves the value of the
passed attribute.