To do something like this I would use a simple flag.
<cfoutput query="myquery' group="outergroup">
<cfset first= true>
<cfouput>
<cfif first>
put something here only if it's the first time
<cfset first = false>
</cfif>
</cfoutput>
</cfoutput>
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
-----Original Message-----
From: Deanna Schneider [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 12:45 PM
To: CF-Talk
Subject: recordcount on a grouped output
How have people handled recordcount issues when doing a cfoutput with a
group clause. In other words, if I'm doing a
<cfoutput query="myquery" group="outergroup">
<cfoutput>
<!--- put something here only if it's the first time through the inner
loop --->
</cfoutput>
</cfoutput>
How do you handle the inner loop "first time through" issue. If you use
recordcount, it refers to the outer loop.
Thoughts?
-Deanna
---------------------------------------------------------
Deanna Schneider
UWEX-Cooperative Extension
Interactive Media Developer
_____
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- recordcount on a grouped output Deanna Schneider
- Ian Skinner