You don't need to nest cfoutputs. Just write:

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

Right?

-----Original Message-----
From: Rodger [mailto:[EMAIL PROTECTED] 
Sent: Friday, 11 February 2005 9:30 a.m.
To: CF-Talk
Subject: Nested cfoutputs problem

I want to use a <cfoutput> tag inside of a <cfoutput query="xxx"> tag.
i.e. 
<cfparam name="Var1" default="Dat1">
<cfoutput query="recordset">
  <cfoutput>#Var1#</cfoutput>#recordset.Rec1#<br>
</cfoutput>
 
Assuming: Var1=Dat1, and 
                 Rec1=Name1, and also Rec1=Name2
Result:  Dat1Dat1Name1 
            Dat1Name2
 
What I am looking for is:
Dat1Name1
Dat1Name2
 
If nesting a <cfoutput> in a <cfoutput query="xxx"> does that, is there
another way?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:194121
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to