This content has been marked as final. Show 3 replies
Because of this line
The index parameter is the variable to store each value of the list as
it is looped over. So as you loop over the list, [9,21,97], you are
assigning each of these values to "variables.otherfundingsource". Thus
at the end of the loop, variables.otherfundingsource is going to equal
the last value in the list, i.e. 97.
thanks. i need that loop to insert values and need those three values again for something else.
what can be a way to get three values? should i make a query to retrieve them? is there any other way to get those values without runnig query again?
Just provide an independent variable for your loop iterations so you are
not overwriting the original variable.
<cfloop list="#variables.otherfundingsource#" index="sourceID">