Thanks all,
Taking out the unnessary <cfoutputs> did the trick.
Rodger 

-----Original Message-----
From: Jared Rypka-Hauer - CMG, LLC [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 10, 2005 12:49 PM
To: CF-Talk
Subject: Re: Nested cfoutputs problem

You don't need to nest... your outer cfoutput will allow var1 to render to
dat1 every time. Provided your code never changes the value of var1, it'll
be fine all the way thru.

<cfparam name="Var1" default="Dat1">
<cfoutput query="recordset">
 #Var1##Rec1#
</cfoutput>

will get you this:

dat1name1
dat1name2
dat1name3

Shouldn't be any big deal. 

Nesting cfoutputs is a nice way to group records on output, BUT, you have to
specify a query and a groupby column in your outer cfoutput tag. If you need
to loop inside a cfoutput with a query tag, use cfloop.

Laterz,
J





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194130
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to