<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-b12.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T06:08:47</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#69170" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#27431" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#24774" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#23906" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#21568" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#21567" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#19132" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#11881" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#69170">
		<title>coldfusion/6.1/htmldocs/tags-b12.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#69170</link>
		<description>J4MIE, you can nest CFOUTPUT if you use the GROUP attribute:&lt;br /&gt;&lt;br /&gt;&lt;cfset bShowEachLine = false&gt;&lt;br /&gt;&lt;cfquery name=&quot;q1&quot; datasource=&quot;#database#&quot;&gt;&lt;br /&gt;	select * from employees&lt;br /&gt;&lt;/cfquery&gt;&lt;br /&gt;&lt;cfoutput query=&quot;q1&quot; group=&quot;company_code&quot;&gt;&lt;br /&gt;	&lt;li&gt;#company_code#: #currentrow#, #recordcount#&lt;/li&gt;&lt;br /&gt;	&lt;cfif bShowEachLine is true&gt;&lt;br /&gt;		&lt;ol&gt;#first_name# #last_name#: #currentrow#, #recordcount#&lt;/ol&gt;&lt;br /&gt;	&lt;cfelse&gt;&lt;br /&gt;		&lt;cfoutput&gt;&lt;ol&gt;#first_name# #last_name#: #currentrow#, #recordcount#&lt;/ol&gt;&lt;/cfoutput&gt;&lt;br /&gt;	&lt;/cfif&gt;&lt;br /&gt;&lt;/cfoutput&gt;</description>
		<dc:creator>cubiclesrule</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-06-28T08:37:53</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#27431">
		<title>coldfusion/6.1/htmldocs/tags-b12.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#27431</link>
		<description>I am hoping that you can answer my question. I am using cfmail to send form data to an e-mail. The proces works great. The problem is in the format of the data. In my form, I have a textarea with the WRAP set to &quot;hard&quot;. When cfmail e-mails the textarea, the text is formatted correctly, but when I use cfoutput to display what was sent, the field is displayed all on one line. Any ideas?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Tim</description>
		<dc:creator>tim8w</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-02-04T11:22:53</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#24774">
		<title>coldfusion/6.1/htmldocs/tags-b12.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#24774</link>
		<description>You can't nest &lt;cfoutput&gt; tags but within one you can do a loop through the query:&lt;br /&gt;&lt;br /&gt;&lt;cfloop query=&quot;myQuery&quot;&gt;&lt;br /&gt;#var#&lt;br /&gt;&lt;/cfloop&gt;</description>
		<dc:creator>J4MIE</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-12-01T18:53:13</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#23906">
		<title>coldfusion/6.1/htmldocs/tags-b12.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#23906</link>
		<description>Nested cfoutput blocks: &lt;br /&gt;can you nest cfoutput blocks with different queries&lt;br /&gt;for instance&lt;br /&gt;outer query: pending order&lt;br /&gt;    inner query: articles ordered for this order&lt;br /&gt;or do you have to join the data in a single query and use grouping?</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-11-15T02:24:46</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#21568">
		<title>coldfusion/6.1/htmldocs/tags-b12.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#21568</link>
		<description>Here is a nested cfoutput example:&lt;br /&gt;&lt;cfquery datasource=&quot;CompanyInfo&quot; name=&quot;empSalary&quot;&gt;&lt;br /&gt;SELECT Emp_ID, firstname, lastname, e.dept_id, salary, d.dept_name &lt;br /&gt;FROM employee e, departmt d&lt;br /&gt;WHERE e.dept_id = d.dept_id&lt;br /&gt;ORDER BY d.dept_name&lt;br /&gt;&lt;/cfquery&gt;&lt;br /&gt;&lt;br /&gt;&lt;!--- outer cfoutput ---&gt;&lt;br /&gt;&lt;cfoutput query=&quot;empSalary&quot; group=&quot;dept_id&quot;&gt;&lt;br /&gt;   &lt;h2&gt;#dept_name#&lt;/h2&gt;&lt;br /&gt;   &lt;table width=&quot;95%&quot; border=&quot;2&quot; cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; &gt;&lt;br /&gt;    &lt;tr&gt;&lt;br /&gt;     &lt;th&gt;Employee&lt;/th&gt;&lt;br /&gt;     &lt;th&gt;Salary&lt;/th&gt;&lt;br /&gt;    &lt;/tr&gt;&lt;br /&gt;    &lt;cfset deptTotal = 0 &gt;&lt;br /&gt;    &lt;!--- inner cfoutput ---&gt;&lt;br /&gt;    &lt;cfoutput&gt;&lt;br /&gt;	&lt;tr&gt;&lt;br /&gt;          &lt;td&gt;#empSalary.lastname#, #empSalary.firstname#&lt;/td&gt;&lt;br /&gt;          &lt;td align=&quot;right&quot;&gt;#DollarFormat(empSalary.salary)#&lt;/td&gt;&lt;br /&gt;        &lt;/tr&gt;&lt;br /&gt;	&lt;cfset deptTotal = deptTotal + empSalary.salary&gt;			&lt;br /&gt;    &lt;/cfoutput&gt;&lt;br /&gt;	&lt;tr&gt;&lt;br /&gt;          &lt;td align=&quot;right&quot;&gt;Total&lt;/td&gt;&lt;br /&gt;	  &lt;td align=&quot;right&quot;&gt;#DollarFormat(deptTotal)#&lt;/td&gt;&lt;br /&gt;        &lt;/tr&gt;&lt;br /&gt;     &lt;cfset deptTotal = 0&gt;&lt;br /&gt;   &lt;/table&gt;&lt;br /&gt;&lt;/cfoutput&gt;</description>
		<dc:creator>jrunrandy</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-09-22T05:09:28</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#21567">
		<title>coldfusion/6.1/htmldocs/tags-b12.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#21567</link>
		<description>I agree that the example for groups MUST have nested cfoutput tags to &lt;br /&gt;display the information that is nested within the group sets.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-09-22T04:37:46</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#19132">
		<title>coldfusion/6.1/htmldocs/tags-b12.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#19132</link>
		<description>I suggest that you consider expanding the example to demonstrate nested CFOUTPUT tags.</description>
		<dc:creator>EscapedCharacter</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-07-28T11:16:34</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#11881">
		<title>coldfusion/6.1/htmldocs/tags-b12.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b12.htm#11881</link>
		<description>We are working to improve the examples in the ColdFusion reference pages. We propose to replace the current example on this page with the the following example. If you have any comments on this example, add them to this page.&lt;br /&gt;&lt;br /&gt;&lt;!--- This example shows how cfoutput operates ---&gt;&lt;br /&gt;&lt;!--- run a sample query ---&gt;&lt;br /&gt;&lt;cfquery name = &quot;GetCourses&quot; dataSource = &quot;cfsnippets&quot;&gt;&lt;br /&gt;   SELECT Dept_ID, CorName, CorLevel&lt;br /&gt;   FROM courseList&lt;br /&gt;   ORDER by Dept_ID, CorLevel, CorName&lt;br /&gt;&lt;/cfquery&gt;&lt;br /&gt;&lt;h3&gt;cfoutput Example&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;cfoutput tells ColdFusion Server to begin processing, and then to hand back control of page rendering to the web server.&lt;br /&gt;&lt;p&gt;For example, to show today's date, you could write #DateFormat(&quot;#Now()#&quot;). If you enclosed that expression in cfoutput, the result would be&lt;cfoutput&gt;#DateFormat(Now())#&lt;/cfoutput&gt;.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;In addition, cfoutput may be used to show the results of a query operation, or only a partial result, as shown:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;There are &lt;cfoutput&gt;#getCourses.recordCount#&lt;/cfoutput&gt; total records in our query. Using the maxRows parameter, we are limiting our display to 4 rows.&lt;br /&gt;&lt;p&gt;&lt;cfoutput query = &quot;GetCourses&quot; maxRows = 4&gt;&lt;br /&gt;   #Dept_ID#   #CorName#   #CorLevel#&lt;br&gt;&lt;br /&gt;   &lt;/cfoutput&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The next example uses the group attribute to eliminate duplicate lines from a list of course levels taught in each department.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;cfquery name = &quot;GetCourses&quot; dataSource = &quot;cfsnippets&quot;&gt;SELECT Dept_ID, CorLevel FROM courseList ORDER by Dept_ID, CorLevel&lt;br /&gt;&lt;/cfquery&gt;&lt;br /&gt;&lt;p&gt;&lt;cfoutput query = &quot;GetCourses&quot; group=&quot;CorLevel&quot; GroupCaseSensitive=&quot;True&quot;&gt;#Dept_ID# #CorLevel#&lt;br&gt;&lt;br /&gt;&lt;/cfoutput&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;cfoutput can also show the results of a more complex expression,&lt;br /&gt;such as getting the day of the week from today's date. We first&lt;br /&gt;extract the integer representing the Day of the Week from&lt;br /&gt;the server function Now() and then apply the result to&lt;br /&gt;the DayofWeekAsString function:&lt;br /&gt;&lt;br /&gt;&lt;br&gt;Today is #DayofWeekAsString(DayofWeek(Now()))#&lt;br /&gt;&lt;br&gt;Today is &lt;cfoutput&gt;#DayofWeekAsString(DayofWeek(Now()))#&lt;/cfoutput&gt;</description>
		<dc:creator>wlee</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-03-26T10:38:10</dc:date>
	</item>
	</rdf:RDF>

