<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 6 - CFML_Reference - Tags-pt175.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T10:02:31</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt175.htm#25574" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt175.htm#25399" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt175.htm#25574">
		<title>coldfusion/6/CFML_Reference/Tags-pt175.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt175.htm#25574</link>
		<description>Thank you MarkZet for your comment/correction.  I was trying to mark a list of check boxes as checked where the userid had previously selected.  In essence showing the user thepreferences by checkbox that they selected in an earlier session.&lt;br /&gt;&lt;br /&gt;I could not get this to work properly until I entered your [queryname.CurrentRow] code.  Thank you, thank you, thank you.</description>
		<dc:creator>fdgsogc91</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-12-17T07:59:01</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt175.htm#25399">
		<title>coldfusion/6/CFML_Reference/Tags-pt175.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt175.htm#25399</link>
		<description>If you have an inner and outer loop over two queries, expressions referring to data in the outer query will return data from the first record during the execution of the inner query loop. However, the CurrentRow pointer still works as expected.&lt;br /&gt;&lt;br /&gt;Example: suppose you have query 'q1' (a column named 'letter' containing two records with  values 'A' and 'B') and query 'q2' (a column named 'number' containing two records with values 1 and 2) :&lt;br /&gt;&lt;CFLOOP query=&quot;q1&quot;&gt;&lt;br /&gt;   &lt;CFLOOP query=&quot;q2&quot;&gt;&lt;br /&gt;      #q1.letter# #q2.number#&lt;br /&gt;   &lt;/CFLOOP&gt;&lt;br /&gt;&lt;/CFLOOP&gt;&lt;br /&gt;This will produce the following output:&lt;br /&gt;A 1 A 2 A 1 A 2&lt;br /&gt;&lt;br /&gt;Workaround:&lt;br /&gt;&lt;CFLOOP query=&quot;q1&quot;&gt;&lt;br /&gt;   &lt;CFLOOP query=&quot;q2&quot;&gt;&lt;br /&gt;      #q1.letter[q1.CurrentRow]# #q2.number#&lt;br /&gt;   &lt;/CFLOOP&gt;&lt;br /&gt;&lt;/CFLOOP&gt;&lt;br /&gt;Gives:&lt;br /&gt;A 1 A 2 B 1 B 2&lt;br /&gt;&lt;br /&gt;Question: is this by design? It has caused some unexpected output at occasions. Especially in a setup such as the following:&lt;br /&gt;&lt;CFLOOP query=&quot;q1&quot;&gt;&lt;CFINCLUDE template=&quot;show.cfm&quot;&gt;&lt;/CFLOOP&gt;&lt;br /&gt;and in template show.cfm:&lt;br /&gt;&lt;CFLOOP query=&quot;q2&quot;&gt;#q1.letter#: #q2.number#&lt;/CFLOOP&gt; &lt;br /&gt;There's really no way to be sure but to postfix every query inside a &lt;CFLOOP query=&quot;&quot;&gt; with [q.CurrentRow].</description>
		<dc:creator>MarkZet</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-12-14T07:23:52</dc:date>
	</item>
	</rdf:RDF>

