1 Reply Latest reply on Apr 28, 2006 12:46 PM by Dan Bracuk

    passing query name as variable to cfloop

    Beards247 Level 1
      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