User Guide

Table Of Contents
About Query of Queries 495
</td>
<td valign = top>
<font size = "-1">#FirstName#</font>
</td>
<td valign = top>
<font size = "-1">#LastName#</font>
</td>
<td valign = top>
<font size = "-1">#LSCurrencyFormat(Salary)#</font>
</td>
</tr>
</cfoutput>
<!--- If the total number of records is less than or equal to
the total number of rows, provide a link to the same page, with the
StartRow value incremented by MaxRows (5, in this example) --->
<tr>
<td colspan = 4>
<cfif (startrow + maxrows) lte getsals2.recordcount>
<a href="qoq_next_row.cfm?startrow=<cfoutput>#Evaluate(StartRow +
MaxRows)#</cfoutput>">See next <cfoutput>#MaxRows#</cfoutput>
rows</a>
</cfif>
</td>
</tr>
</table>
</body>
</html>
2.
Save the page as qoq_next_row.cfm in the myapps directory under the web_root.
3.
Display qoq_next_row.cfm in your browser
Using the cfdump tag with query results
As you debug your CFML code, you can use the
cfdump tag to quickly display the contents of
your query. This tag has the following format:
<cfdump var="#query_name#">
For more information on the cfdump tag, see CFML Reference.
Using Query of Queries with non-SQL record sets
A Query of Queries can operate on any CFML tag or function that returns a record set; you are
not limited to operating on
cfquery results. You can perform queries on non-SQL record sets,
such as a
cfdirectory tag, a cfsearch tag, a cfldap tag, and so on.
The following example shows how a Query of Queries interacts with the record set of a Verity
search. This example assumes that you have a valid Verity collection, called bbb, which contains
documents with a target word, film, or its variants (films, filmed, filming). Change the name of
the collection and the search criteria to as appropriate for your Verity collection. For more
information on Verity, see Chapter 24, “Building a Search Interface,” on page 547.