<option value="#companyID#">#SESSION.companyIDList[companyID].companyName #</option>
But why don't you just use the query? Pascal > -----Original Message----- > From: Mark Leder [mailto:[EMAIL PROTECTED] > Sent: 29 April 2005 15:19 > To: CF-Talk > Subject: Cfloop collection > > 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.company Na > me > #</option> > </cfloop> > </select> > </form> > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205069 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