• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

passing query name as variable to cfloop

Explorer ,
Apr 28, 2006 Apr 28, 2006

Copy link to clipboard

Copied

Is there a way to pass a queryname as a variable to a cfloop? Here's the code I am working with:

<cfloop query="qindustry">
<cfset Output_Code = "#Output_Code# <input type=""checkbox"" id=""#Attributes.fieldname#"" name=""#Attributes.fieldname#"" value=""#Evaluate(Attributes.Value_Var)#"" #IIF((listfind((evaluate(Querylist)),"#Evaluate(Attributes.Value_Var)#")), DE(" checked"), DE(""))#> #Evaluate(Attributes.Name_Var)#<br>">
</cfloop>

Makes great radio boxes, but I need to be able to do this for multiple pages - so far any time I try to put a variable in the query value, it can't figure out what the variable is.

Thanks in advance,
~CB
TOPICS
Advanced techniques

Views

257

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 28, 2006 Apr 28, 2006

Copy link to clipboard

Copied

LATEST
Since it looks like a custom tag, attributes.queryname

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation