Thanks, that worked.
I'm not using the query directly in this instance as I need to pass the
query to a different page for further processing. 

-----Original Message-----
From: Pascal Peters [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 29, 2005 9:32 AM
To: CF-Talk
Subject: RE: Cfloop collection

<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>
> 
> 
> 
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205073
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

Reply via email to