Im having a problem that SURE looks like a bug to me. Can someone please try
this and let me know if its me or CFMX?
Setup:
- 1 query with a resultset that is cfoutput groupable and cfoutput nestable
allowing you to use cfoutput to loop over two levels of a resultset
- 2 templates - test1.cfm and test2.cfm
First time through (remember to do this on both CF5 and CFMX)
-----------
test1.cfm
-----------
<!--- run the query --->
<cfquery name="myQuery">
select a.id1, a.aname, b.id2, b.bname
from a
join b on a.id1 = b.id1
</cfquery>
<cfoutput query="myQuery" group="ID1">
#aname#<br />
<cfoutput>
#bname#<br />
</cfoutput>
</cfoutput>
nothing fancy here. just simple nesting of a grouped cfoutput.
in test2.cfm, just put the following:
-----------
test2.cfm
-----------
<p>test2</p>
Now modify test1.cfm like so...
<cfoutput query="myQuery" group="ID1">
<cfmodule template="test2.cfm"> <!--- add this line --->
#aname#<br />
<cfoutput>
#bname#<br />
</cfoutput>
</cfoutput>
the output should be the same except that you see "test2" show up before
every #aname#
Now modify test1.cfm again ...
<cfoutput query="myQuery" group="ID1">
<cfmodule template="test2.cfm">
#aname#<br />
<cfoutput>
#bname#<br />
</cfoutput>
</cfmodule> <!--- add this line --->
</cfoutput>
take a look at the results. aside from seeing "test2" show up twice between
the #aname#'s, did anything else change? On my machine, the second cfoutput
ceases to loop. In fact, if you place query or group attributes in that
cfoutput, it doesnt throw errors due to invalid attribute nesting like it
should.
CAN ANYONE DUPLICATE THIS BEHAVIOUR?????
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org