I have this code
<cfset reportCardFields = "formid, sid, datecreated, tid, sname, grade, year, 
school, teacher, principal, reading, language, math, science, t1, t2, t3, t4, 
t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19, t20, t21, 
t22, t23, t24, t25, t26, t27, t28, t29, t30, t31, t32, t33, t34, t35, t36, t37, 
t38, t39, t40, t41, t42, t43:0, t44:0, t45:0, t46:0, t47:0, t48:0, t49:0, 
t50:0, t51, t52, t53, t54, t55, t56, t57, t58, t59, t60, t61, t62, t63, t64, 
ch1, ch2, ch3, ch4, ch5, ch6, ch7, ch8, ch9, ch10, ch11, ch12, ch13, ch14, 
ch15, ch16, ch17, ch18, ch19, ch20, ch21, ch22, ch23, ch24, ch25, ch26, ch27, 
ch28, ch29, ch30, ch31, ch32, ch33, ch34, ch35, ch36, ch37, ch38, ch39, ch40, 
ch41, ch42, ch43, ch44, ch45, ch46, ch47, ch48, ch49, ch50, ch51, ch52, ch53, 
ch54, ch55, ch56, ch57, ch58, ch59, ch60, ch61, ch62, ch63, ch64, ch65, ch66, 
ch67, ch68, ch69, ch70, ch71, ch72, ch73, ch74, ch75, ch76, ch77, ch78, ch79, 
ch80, ch81, ch82, ch83, ch84, ch85, ch86, ch87, ch88, ch89, ch90, ch91, ch92, 
ch93, ch94, ch95, ch96, ch97, ch98, ch99, ch100, ch101, ch102, ch103, ch104, 
ch105, ch106, ch107, ch108, ch109, ch110, ch111, ch112, ch113, ch114, ch115, 
ch116, ch117, ch118, ch119, ch120, ch121, ch122, ch123, ch124, ch125, ch126, 
ch127, ch128, ch129, ch130, ch131, ch132, ch133, ch134, ch135, ch136, ch137, 
ch138, ch139, ch140, LANGUAGE_ESOL_1, LANGUAGE_ESOL_2, LANGUAGE_ESOL_3, 
READING_ESOL_1, READING_ESOL_2, READING_ESOL_3, WRITING_ESOL_1, WRITING_ESOL_2, 
WRITING_ESOL_3, MATH_ESOL_1, MATH_ESOL_2, MATH_ESOL_3">
                <!--- Set default values --->
                <cfloop index="i" list="#reportCardFields#">
                        <cfif not structkeyexists(form, i)>
                                <cfif listlen(i,  ":") gt 1>
                                        <cfset form[listgetat(i,  1 ,  ":")] = 
listgetat(i,  2 ,  ":")>
                                <cfelse>        
                                        <cfset form[i] = "">
                                </cfif> 
                                
                        </cfif>
                </cfloop>
                <cfdump var="#form["CH58"]#"><cfabort>


And on a form submit I get this error

Element CH58 is undefined in a Java object of type class 
coldfusion.filter.FormScope referenced as  


I'm on CF 6, anyone have any idea why?



Bob 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241807
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to