I’m looking to loop through a query, and would like to use grouping, like one would using cfoutput. I know CF10 added that support, but is there a script that emulates that behaviour so that items can be iterated easily?
Edit:
There are ways of getting around the lack of grouping in cfloop, by rearranging cfoutput tags, so they are not nested. The reason I’m looking for the cfloop workaround is that when nesting cfoutput, you need to use the results from the same query. I’d like to use my own QoQ and loop through the result.
OK, so you want to do this sort of thing:
?
And the second loop gives you an error:
You should be able to revise that to:
There’s another option to emulate the group loop if you must. But that’s a bunch of thinking and typing I’d rather avoid if poss, so let me know if this approach works first.