Ok, here's what's throwing me.
My output expands dynamically horizontally AND vertically.
I'm having a hard time tracking the totals for each column, since they're
dynamic.
Here's my entire <cfoutput>. I worked on it a few hours, then got pissed and
erased what I'd done. I need to track each column by using the Qctr var and
prob an ansCtr var.
<cfoutput query="getCoreQuestionReport" group="questionID">
<cfset Qctr = Qctr + 1>
<tr <cfif Qctr MOD 2 EQ
0>bgcolor="##FFFFFF"<cfelse>bgcolor="##EEEEEE"</cfif>>
<td align="center" width="25"><cfif question NEQ
"Totals">#Qctr#</cfif></td>
<td width="60%"><cfif question NEQ
"Totals">#question#<cfelse><h2>#question#</h2></cfif></td>
<td>
<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>
</td>
</tr>
</cfoutput>
</table>
<!--- End CORE Report --->
Thanks,
Will
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275287
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4