Yes, it's possible, but you need a few extra variables to store the "current" grouped value and a CFIF tag or two.
Basically, you need to store the first grouped value in a temp variable. If the next value is the same as what you stored, you don't output it. You keep doing this until you get to a different value. Then, you store that new value and display it. Rinse and repeat. I had to build a pretty complicated "grid" recently. I started with a simple array that held my base values, then, I took a few extra steps to add bits of information to that array in the proper locations. Once I had that array completely built, all I had to do was loop over it and simply output everything. Maybe something like that would make sense for you? M!ke -----Original Message----- From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 8:54 AM To: CF-Talk Subject: Grouped output with cfloop? Is there any way to do grouped query output using cfloop? Reason is that I use a switch/case statement for my page, and wrap the entire thing in a cfoutput tag to make my code more readable. I would like to do something like: <cfoutput query="foo" group="groupcolumn"> <h1>#groupcolumndata#</h1> <cfoutput> #blah# </cfoutput> </cfoutput> But I would like to do it with cfloop or some other technique. Is this possible? Thanks Pete ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:199667 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

