So far i have made a table with products and its sums, according to a months, i am a new in this so i have a mistake: Variable total2_1_27 is undefined. i cant get the sums of products by month, i found so far by a row but couldnt get by column… so here is the code:
http://jsfiddle.net/Tskak/1/ i just can’t understand how do i define this total2, this line:
<cfset 'total2_#ddd_other#_#p_index#'=evaluate('total2_#ddd_other#_#p_index#') + #evaluate('alan2_#ddd_other#_#p_index#')#>
pls somebody help! and thank you all for the help!
Don’t use evaluate or put variable names inside quotes in a cfset like
<cfset 'blah_#x#' = foo>.Instead refer to variables like this:
or
This is assuming that the value is in the variables scope. If it was in say session scope you’d refer to it
session['total2_' & ddd_other & '_' & p_index]. Also you can use += in CF8 and CF9, so this would be fine: