Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting client variables with a query

Status
Not open for further replies.

Lotruth

Programmer
Joined
May 2, 2001
Messages
133
Location
US
I need to use a query to set client variables equal to each field in the db table for a single record.

To set them with a list of form fields I use this code:
<cfloop index=&quot;element&quot; list=&quot;form.#fieldnames#&quot;>
<cfset &quot;client.#element#&quot;=evaluate(&quot;form.#element#&quot;)>
</cfloop>

Is there something like query.#fieldnames# that I need to use to create the list? Thanks for your help.
 
Hey Lotruth,

I think query.columnList is what you're looking for.

Hope this helps,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top