You can't use CFLOOP for grouping unless you do it yourself (not
recommended).

I'd imaging that the reason is CFLOOP is designed for simple looping, while
CFOUTPUT is purpose built for dealing with recordsets.  When nested,
individual CFLOOP tags are never related (though you can potentially make
multiple loops interact with the same variables), while CFOUTPUT are always
nested, though frequently only to one level of depth.  Consider these rules:

1) cfloop never contains cfloop with a relationship
2) cfoutput with no attributes never contains cfoutput
3) cfoutput for looping a recordset is always nested, according to these
rules:
   a) the outermost tag must have a query attribute
   b) all levels except the innermost must have a 'group' attribute

That will perfectly describe the various constructs those tags are allows to
exist in.  Making CFLOOP do grouping would make that rule list significantly
more complex.

Cheers,
barneyb

> -----Original Message-----
> From: Tyler Clendenin [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 04, 2004 11:26 AM
> To: CF-Talk
> Subject: query grouping
>
> Now i know about cfoutput's group attributes, but can someone
> explain to me
> why in so many versions cfloop has not been given the same
> attributes and if
> there is a way (other then programming all the grouping logic
> myself) to get
> the same result as cfoutput group without using an output.
>  
> Tyler Clendenin
> GSL Solutions
>  
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to