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

On Thu, 10 Feb 2005 12:29:53 -0800, Rodger <[EMAIL PROTECTED]> wrote:
> 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?
> 
> Rodger
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:194124
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