Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / April 2006



Tip: Looking for answers? Try searching our database.

passing query name as variable to cfloop

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Beards247 - 28 Apr 2006 19:23 GMT
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
Dan Bracuk - 28 Apr 2006 20:46 GMT
Since it looks like a custom tag, attributes.queryname
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.