Hey, I have an inner <cfoutput> that shows totals for each question answered. 

It looks like this: http://wtomlinson.com/outputcap.jpg

I need it to count up the totals vertically for each question, then show them 
at the bottom, horizontally as shown. Except what you see in the screen cap are 
incorrect values. 

I've worked on this for quite a few hours and made a little progress. Heavy 
emphasis on little. :)  
Just can't seem to wrap my head around these loops. I'm thinking it needs to 
build an array, then loop over it at the bottom horizontally. 

Does anyone have suggestions? 

Here's my output code below, thanks!
Will


<cfoutput> 
 <table style="float:left; width:50px; text-align:center; font-size:11px; 
border:1px solid ##CCCCCC; margin:5px; vertical-align:top; 
background-color:##F7F7F7;">
         <tr>
           <td style="border: 1px solid ##CCCCCC;">#answervalue#</td>
         </tr>
         <tr>
           <td style="border: 1px solid 
##CCCCCC;"><strong>#totalforthisquestion#</strong></td>
         </tr>
         <tr>
           <td style="border: 1px solid 
##CCCCCC;"><strong>#NumberFormat(answerpercentage, "__")#%</strong></td>
         </tr>
 </table>
</cfoutput>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275266
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to