you can't do it using array notation for referencing query column inside
a nested cfoutput, but something like this instead should work:

<cfoutput query="somequery" group="somecolumn">
#somecolumn#
<cfset arrNestedOutputValues = arraynew(1)>
<cfoutput>
<cfset arrayappend(arrNestedOutputValues, someothercolumn)>
</cfoutput>
#arraysum(arrNestedOutputValues)#
</cfoutput>

basically, you populate an array inside the nested cfoutput, but sum it
up & display the result in the outer cfoutput.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



James Fuller wrote:
> Is there a way to do this sum within the cfoutput tag using the group 
> attribute?  I can get the total sum for the whole query, but now I need 
> sub-totals by group.
>
> Thanks!
>
> James
>
>
>   
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317037
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to