> Anyone know if there's a way to get the 'currentrow'
> within a cfoutput grouping?  In other words, if I have 5
> groups I'm cfoutputting, I want to be able to access the
> row # within each group.  I know I can do this by setting
> a counter and incrementing within the 'inside' <cfoutput>
> tag, and then resetting it to 1 before that every time,
> but I'm wondering if there is a cleaner way of doing this.
> And just to be clear, query.currentrow does not give me
> that, it gives me the row number in relation to the entire
> query, not the group.

> Thanks,

<cfoutput query="x" group="y">
        <cfset z = currentrow>
        <cfoutput>
                #int(currentrow-z)#
        </cfoutput>
</cfoutput>

Not a huge difference, but it eliminates the need to create a manual
counter.


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213177
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to