I would not advise nesting them like this as you may get unexpected results
such as the first loop having more or less loop iterations than the
second... what are you trying to do? what are your goals...
N
-Original Message-
From: Peter Mayer [mailto:[EMAIL PROTECTED]]
Sent: 11 February
I wouls assume that the second query has more than one row returned, therefore it will
iterate through each loop of the cfloop until it reaches the end of the query results.
Then it will return to the cfquery tag, iterate to the next query1 result, then go
and loop through query2 completely
Peter,
I have two queries - the output of the first one is handled by a cfoutput
tag, the second one is handled by a cfloop (nested construction):
cfoutput query=query1
bla bla #query1.name#:
cfloop query=query2
#query2.surname# (event: #query1.eventtitle#)br
/cfloop
/cfoutput
Its a
Did you try this?
cfloop query=query1
cfoutput#query1.whatever#/cfoutput
cfloop query=query2
cfoutput#query2.whatever# #query1.whatever#/cfoutput
/cfloop
/cfloop
I have found when you try to mix queries like that, CF has a bit of a problem,
especially if
within a cfoutput always the first row
is returned and not the currentrow record.
Best regards,
Peter
Orginale Nachricht
Von: Robertson-Ravo,Neil (RX) [EMAIL PROTECTED]
Betreff: RE: cfoutput + cfloop: bug or
Datum/Zeit: Dienstag, 11. Februar 2003 15:32:31
I would not advise
as a
matter of course, and then I don't have to worry about it.
-Kev
-Original Message-
From: Ryan Emerle [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 11:55 AM
To: CF-Talk
Subject: RE: cfoutput + cfloop: bug or
Did you try this?
cfloop query=query1
cfoutput#query1
I have mentioned this workaround already in my original posting (see
under my workaround). ;-)
This error (?) occurs every time I use this construction.
Best regards,
Peter
Orginale Nachricht
Von: Kevin Langevin [EMAIL PROTECTED]
Betreff: RE: cfoutput + cfloop: bug or
Datum/Zeit
Peter Mayer wrote:
I know this example isn't very good but the general question still exists
if it is a bug that during a cfloop within a cfoutput always the first row
is returned and not the currentrow record.
Presuming this is your actual question: some call it a bug, some call it
a
8 matches
Mail list logo