i decided to implement my version of <cfgrid>. i output a query depending on the three related selects and allow users to update these results. one of them is the product where they can pick another one from a drop down. #cZ# is a counter, and i defined <cfset ProductID = ArrayNew(1)>
the error happens because of the way i define the select list. how can assign a value of a select list to an array's address. i.e. ProductID[3] = #FORM.ProductSelect# without leaving that form ?
the form output changes every single time depending on what user selects from the previous page. so it can be 5 rows, or it can be 25. i want to assign every select/input to an array and on the processing page update the corresponding records. i use <cfform action="smt" method="post"> <cfloop query="something"> <cfoutput> .... <select name="ProductID#cZ#"> .... </select> ... </cfloop> </cfoutput> </cfform>
for every field in the cfform, i had to use unique names. that's why i tried adding a counter after the select/input names. in essence i am trying to create an updateable cfgrid. the user can change/edit any area within that output. so i have to find a way to see what has been done to the form so that i can update the necessary fields. hope it makes sense.