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 / November 2004



Tip: Looking for answers? Try searching our database.

Query  values to customtag

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kruse - 26 Nov 2004 11:56 GMT
Hi, I hawe a query in one modul. Then I want to give the query to a custom tag
<CF_Out> that writes the output of the query. Is this possible? I have tried to
take the query name and send it to the tag <CF_Out q='queryName' i='outvalue'>
and then make a loop in the cf_out tag.  <cfloop query='#attributes.q#>      
#Evaluate(attributes.i)I# </cfloop>  But this does not work. I get the
following error: Attribute validation error for tag cfloop.   The value of the
attribute query, which is currently 'queryName', is invalid.     Any
surgestions?  
Adam Cameron - 26 Nov 2004 21:29 GMT
> take the query name and send it to the tag <CF_Out q='queryName' i='outvalue'>

<cf_out q='#queryName#'>
...
<cfloop query="attributes.q">

You pass the actual query into the cust tag, and reference it by NAME in
the <cfloop>.

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