Répondu
Form field with comma delimited value list to cfc
I have a form that passes a field to an action page with a
comma delimited value.
For instance the field name is: Program_ID
value for program_ID is: 31, 32
I am able to treat this variable as a list and check its length, and loop over the list prior to passing it to a cfc using the attached code:
When I try and pass the variable as a string to a cfc and invoke a query, cf no longer recognizes my var as a list.
Therefore the code attached does not function...
Is there a specific var type that will pass through as a list and allow me to run the code block attached?
thanks
Craig
For instance the field name is: Program_ID
value for program_ID is: 31, 32
I am able to treat this variable as a list and check its length, and loop over the list prior to passing it to a cfc using the attached code:
When I try and pass the variable as a string to a cfc and invoke a query, cf no longer recognizes my var as a list.
Therefore the code attached does not function...
Is there a specific var type that will pass through as a list and allow me to run the code block attached?
thanks
Craig