--------------653661AB437C0A7FB3365840
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Jon

I don't think I can say "duh" loud enough ... thanks for the simple solution! ;-)

* john *

Jon Boehnker wrote:

> Try using <cfloop query="myquery">
>
> HTH
>
> Jon
>
> John Mentzer wrote:
> >
> > Hi
> >
> > I'm attempting to embed a table inside a CFMAIL tag. I'd like the table
> > to be dynamic. Problem is, whenever I put a <CFOUTPUT QUERY=""> inside
> > the <CFMAIL> I get the following error:
> >
> > Invalid tag nesting configuration
> >
> >  A query driven CFOUTPUT tag is nested inside a CFMAIL tag that also has
> > a QUERY= attribute. This is not allowed. Nesting
> >  these tags implies that you want to use grouped processing. However,
> > only the top-level tag can specify the query that
> >  drives the processing.
> >
> > Notice there is no Query attribute CFMAIL tag. Why am I getting this
> > error? I tried using the Query attribute of the CFMAIL tag, but the mail
> > tag was getting looped, sending one email for each of the rows returned.
> > That's not quite what I had in mind.
> >
> > *Any* help would be *greatly* appreciated!
> >
> > * John *
> >
> > Here's the CFMAIL tag that's generating the error:
> >
> > <CFMAIL FROM="[EMAIL PROTECTED]" TO="#go_print_customer.email#"
> > SUBJECT="Thank you for your order" TYPE="HTML">
> >
> > <TABLE ALIGN="center" BORDER="0" CELLPADDING="0" CELLSPACING="0"
> > WIDTH="430">
> >  <TR>
> >   <TD>Here is a summary of your order.</TD>
> >  </TR>
> >
> >  <TR>
> >   <TH WIDTH="25">No.</TH>
> >   <TH WIDTH="25">Qty</TH>
> >   <TH WIDTH="50">Size</TH>
> >   <TH WIDTH="50">Price</TH>
> >   <TH WIDTH="125">Total</TH>
> >   <TH WIDTH="60">&nbsp;</TH>
> >  </TR>
> >
> >  <CFOUTPUT QUERY="gm_print_lineitems2">
> >
> >  <CF_go_exp
> >    exp = #gm_print_lineitems2.exp#>
> >
> >   <CFLOOP FROM="1" TO="18" INDEX="loopA">
> >    <CFIF current_print_choices[loopA][1] IS
> > "#gm_print_lineitems2.print_code#">
> >     <CFSET current_size = #current_print_choices[loopA][2]#>
> >     <CFSET current_price = #current_print_choices[loopA][3]#>
> >    </CFIF>
> >    <CFSET loopA = 0>
> >   </CFLOOP>
> >
> >  <TR>
> >   <TD ALIGN="right">#gm_print_lineitems2.exp#</TD>
> >   <TD ALIGN="right">#gm_print_lineitems2.qty#</TD>
> >   <TD ALIGN="right">#current_size#</TD>
> >   <TD ALIGN="right">#current_price#</TD>
> >   <TD ALIGN="right">&nbsp;</TD>
> >  </TR>
> >
> >  <TR>
> >   <TD ALIGN="center" COLSPAN="6">
> >    <HR COLOR="##4582D2" SIZE="1" WIDTH="80%">
> >   </TD>
> >  </TR>
> >
> >  <CFSET subtotal_prints = subtotal_prints + #current_price#>
> >  </CFOUTPUT>
> >
> >  <TR>
> >    <TD>Subtotal, prints</TD>
> >    <TD COLSPAN="3">&nbsp;</TD>
> >    <TD ALIGN="right">#DollarFormat(subtotal_prints)#</TD>
> >  </TR>
> >
> >  <TR>
> >    <TD>Shipping</TD>
> >    <TD COLSPAN="3">&nbsp;</TD>
> >    <TD ALIGN="right"> 4.00</TD>
> >  </TR>
> >
> >  <CFSET total_prints = subtotal_prints + 4>
> >  <TR>
> >    <TD>Total Order</TD>
> >    <TD COLSPAN="3">&nbsp;</TD>
> >    <TD ALIGN="right">#DollarFormat(total_prints)#</TD>
> >  </TR>
> >
> >  <TR>
> >   <TD ALIGN="center" COLSPAN="6">
> >    <HR COLOR="##4582D2" SIZE="1" WIDTH="80%">
> >   </TD>
> >  </TR>
> >
> > </TABLE>
> >
> > </CFMAIL>
> >
> > ------------------------------------------------------------------------------
> > Archives: http://www.eGroups.com/list/cf-talk
> > To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
>
> --
> Jon Boehnker
> [EMAIL PROTECTED]
>
> -><-
> ------------------------------------------------------------------------------
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

--------------653661AB437C0A7FB3365840
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Jon
<p>I don't think I can say "duh" loud enough ... thanks for the simple
solution! ;-)
<p>* john *
<p>Jon Boehnker wrote:
<blockquote TYPE=CITE>Try using &lt;cfloop query="myquery">
<p>HTH
<p>Jon
<p>John Mentzer wrote:
<br>>
<br>> Hi
<br>>
<br>> I'm attempting to embed a table inside a CFMAIL tag. I'd like the
table
<br>> to be dynamic. Problem is, whenever I put a &lt;CFOUTPUT QUERY="">
inside
<br>> the &lt;CFMAIL> I get the following error:
<br>>
<br>> Invalid tag nesting configuration
<br>>
<br>>&nbsp; A query driven CFOUTPUT tag is nested inside a CFMAIL tag that
also has
<br>> a QUERY= attribute. This is not allowed. Nesting
<br>>&nbsp; these tags implies that you want to use grouped processing.
However,
<br>> only the top-level tag can specify the query that
<br>>&nbsp; drives the processing.
<br>>
<br>> Notice there is no Query attribute CFMAIL tag. Why am I getting this
<br>> error? I tried using the Query attribute of the CFMAIL tag, but the
mail
<br>> tag was getting looped, sending one email for each of the rows returned.
<br>> That's not quite what I had in mind.
<br>>
<br>> *Any* help would be *greatly* appreciated!
<br>>
<br>> * John *
<br>>
<br>> Here's the CFMAIL tag that's generating the error:
<br>>
<br>> &lt;CFMAIL FROM="[EMAIL PROTECTED]" TO="#go_print_customer.email#"
<br>> SUBJECT="Thank you for your order" TYPE="HTML">
<br>>
<br>> &lt;TABLE ALIGN="center" BORDER="0" CELLPADDING="0" CELLSPACING="0"
<br>> WIDTH="430">
<br>>&nbsp; &lt;TR>
<br>>&nbsp;&nbsp; &lt;TD>Here is a summary of your order.&lt;/TD>
<br>>&nbsp; &lt;/TR>
<br>>
<br>>&nbsp; &lt;TR>
<br>>&nbsp;&nbsp; &lt;TH WIDTH="25">No.&lt;/TH>
<br>>&nbsp;&nbsp; &lt;TH WIDTH="25">Qty&lt;/TH>
<br>>&nbsp;&nbsp; &lt;TH WIDTH="50">Size&lt;/TH>
<br>>&nbsp;&nbsp; &lt;TH WIDTH="50">Price&lt;/TH>
<br>>&nbsp;&nbsp; &lt;TH WIDTH="125">Total&lt;/TH>
<br>>&nbsp;&nbsp; &lt;TH WIDTH="60">&amp;nbsp;&lt;/TH>
<br>>&nbsp; &lt;/TR>
<br>>
<br>>&nbsp; &lt;CFOUTPUT QUERY="gm_print_lineitems2">
<br>>
<br>>&nbsp; &lt;CF_go_exp
<br>>&nbsp;&nbsp;&nbsp; exp = #gm_print_lineitems2.exp#>
<br>>
<br>>&nbsp;&nbsp; &lt;CFLOOP FROM="1" TO="18" INDEX="loopA">
<br>>&nbsp;&nbsp;&nbsp; &lt;CFIF current_print_choices[loopA][1] IS
<br>> "#gm_print_lineitems2.print_code#">
<br>>&nbsp;&nbsp;&nbsp;&nbsp; &lt;CFSET current_size = 
#current_print_choices[loopA][2]#>
<br>>&nbsp;&nbsp;&nbsp;&nbsp; &lt;CFSET current_price = 
#current_print_choices[loopA][3]#>
<br>>&nbsp;&nbsp;&nbsp; &lt;/CFIF>
<br>>&nbsp;&nbsp;&nbsp; &lt;CFSET loopA = 0>
<br>>&nbsp;&nbsp; &lt;/CFLOOP>
<br>>
<br>>&nbsp; &lt;TR>
<br>>&nbsp;&nbsp; &lt;TD ALIGN="right">#gm_print_lineitems2.exp#&lt;/TD>
<br>>&nbsp;&nbsp; &lt;TD ALIGN="right">#gm_print_lineitems2.qty#&lt;/TD>
<br>>&nbsp;&nbsp; &lt;TD ALIGN="right">#current_size#&lt;/TD>
<br>>&nbsp;&nbsp; &lt;TD ALIGN="right">#current_price#&lt;/TD>
<br>>&nbsp;&nbsp; &lt;TD ALIGN="right">&amp;nbsp;&lt;/TD>
<br>>&nbsp; &lt;/TR>
<br>>
<br>>&nbsp; &lt;TR>
<br>>&nbsp;&nbsp; &lt;TD ALIGN="center" COLSPAN="6">
<br>>&nbsp;&nbsp;&nbsp; &lt;HR COLOR="##4582D2" SIZE="1" WIDTH="80%">
<br>>&nbsp;&nbsp; &lt;/TD>
<br>>&nbsp; &lt;/TR>
<br>>
<br>>&nbsp; &lt;CFSET subtotal_prints = subtotal_prints + #current_price#>
<br>>&nbsp; &lt;/CFOUTPUT>
<br>>
<br>>&nbsp; &lt;TR>
<br>>&nbsp;&nbsp;&nbsp; &lt;TD>Subtotal, prints&lt;/TD>
<br>>&nbsp;&nbsp;&nbsp; &lt;TD COLSPAN="3">&amp;nbsp;&lt;/TD>
<br>>&nbsp;&nbsp;&nbsp; &lt;TD ALIGN="right">#DollarFormat(subtotal_prints)#&lt;/TD>
<br>>&nbsp; &lt;/TR>
<br>>
<br>>&nbsp; &lt;TR>
<br>>&nbsp;&nbsp;&nbsp; &lt;TD>Shipping&lt;/TD>
<br>>&nbsp;&nbsp;&nbsp; &lt;TD COLSPAN="3">&amp;nbsp;&lt;/TD>
<br>>&nbsp;&nbsp;&nbsp; &lt;TD ALIGN="right"> 4.00&lt;/TD>
<br>>&nbsp; &lt;/TR>
<br>>
<br>>&nbsp; &lt;CFSET total_prints = subtotal_prints + 4>
<br>>&nbsp; &lt;TR>
<br>>&nbsp;&nbsp;&nbsp; &lt;TD>Total Order&lt;/TD>
<br>>&nbsp;&nbsp;&nbsp; &lt;TD COLSPAN="3">&amp;nbsp;&lt;/TD>
<br>>&nbsp;&nbsp;&nbsp; &lt;TD ALIGN="right">#DollarFormat(total_prints)#&lt;/TD>
<br>>&nbsp; &lt;/TR>
<br>>
<br>>&nbsp; &lt;TR>
<br>>&nbsp;&nbsp; &lt;TD ALIGN="center" COLSPAN="6">
<br>>&nbsp;&nbsp;&nbsp; &lt;HR COLOR="##4582D2" SIZE="1" WIDTH="80%">
<br>>&nbsp;&nbsp; &lt;/TD>
<br>>&nbsp; &lt;/TR>
<br>>
<br>> &lt;/TABLE>
<br>>
<br>> &lt;/CFMAIL>
<br>>
<br>> ------------------------------------------------------------------------------
<br>> Archives: <a 
href="http://www.eGroups.com/list/cf-talk">http://www.eGroups.com/list/cf-talk</a>
<br>> To Unsubscribe visit <a 
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/cf_talk</a>
or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.
<p>--
<br>Jon Boehnker
<br>[EMAIL PROTECTED]
<p>->&lt;-
<br>------------------------------------------------------------------------------
<br>Archives: <a 
href="http://www.eGroups.com/list/cf-talk">http://www.eGroups.com/list/cf-talk</a>
<br>To Unsubscribe visit <a 
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/cf_talk</a>
or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.</blockquote>
</html>

--------------653661AB437C0A7FB3365840--


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to