Hi all, I want to loop a structure and present the output in a form list select. I'm able to put the query in a structure and dump it successfully, but the cfloop collection code keeps throwing errors. How do I fix this? BTW: each companyID is a UUID string; the QueryToStructofStructures is from CFLib. <!--- Page that creates the structure ---> SESSION.companyIDList = StructNew(); SESSION.companyIDList = "#QueryToStructOfStructures(qCompanyRecords,"companyID")#"; <!--- Form page ---> <form ....> <select name="companyID"> <option value="0">- Select A Company</option> <cfloop collection="#SESSION.companyIDList#" item="companyID"> <option value="#SESSION.companyIDList.companyID#">#SESSION.companyIDList.companyName #</option> </cfloop> </select> </form>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205067 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

