MACROMEDIA COLFUSION MX 7-CFML Reference page 410

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

Attribute
Req/Opt Default Description
colHeaders
Optional
startRow
Optional
Usage
This tag aligns table data, sets column widths, and defines column heads.
At least one
cfcol
in a page. The only tag that you can nest within this tag is the
tags.
cftable
To display the
cfcol header
attribute. If you specify either attribute without the other, the header does not display
colHeader
and no error is thrown.
Example
<!--- This example shows the use of cfcol and cftable to align information
returned from a query. --->
<!--- This query selects employee information from cfdocexamples
datasource. --->
<cfquery name = "GetEmployees" dataSource = "cfdocexamples">
SELECT Emp_ID, FirstName, LastName, EMail, Phone, Department
FROM Employees
</cfquery>
<html>
<body>
<h3>cftable Example</h3>
<!--- Note use of HTMLTable attribute to display cftable as an HTML table,
rather than as PRE formatted information. --->
<cftable query = "GetEmployees"
startRow = "1" colSpacing = "3" HTMLTable>
<!--- Each cfcol tag sets width of a column in table, and specifies header
information and text/CFML with which to fill cell. --->
<cfcol header = "<b>ID</b>"
align = "Left"
width = 2
text
= "#Emp_ID#">
<cfcol header = "<b>Name/Email</b>"
align = "Left"
width = 15
text
= "<a href = 'mailto:#Email#'>#FirstName# #LastName#</A>">
<cfcol header = "<b>Phone Number</b>"
align = "Center"
width = 15
text
= "#Phone#">
410
Chapter 2: ColdFusion Tags
Displays column heads. If you use this attribute, you must also
use the
If you use this attribute (regardless of its value), ColdFusion
displays column heads.
1
The query result row to put in the first table row.
tag is required within this tag. You must put
text, you must specify the
tag
attribute to define them.
cfcol
header
cfcol
cfcol
cfcol header
and
tags adjacent
cftable
tag. You cannot nest
and the
cftable

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents