This manual, as well as the software described in it, is furnished
under license and may be used or copied only in accordance with the
terms of such license. The content of this manual is furnished for
informational use only, is subject to change without notice, and
should not be construed as a commitment by Allaire Corporation.
Allaire Corporation assumes no responsibility or liability for any
errors or inaccuracies that may appear in this book.
Except as permitted by such license, no part of this publication may
be reproduced, stored in a retrieval system, or transmitted in any
form or by any means, electronic, mechanical, recording, or
otherwise, without the prior written permission of Allaire
Corporation.
ColdFusion and HomeSite are federally registered trademarks of
Allaire Corporation. HomeSite, the ColdFusion logo, and the Allaire
logo are trademarks of Allaire Corporation in the USA and other
countries. Microsoft, Windows, Windows NT, Windows 95, Microsoft
Access, and FoxPro are registered trademarks of Microsoft
Corporation. All other products or name brands are the trademarks
of their respective holders. Solaris is a trademark of Sun
Mi cr os yst em s I nc. UN IX is a tr ad em ark of Th e O pen Gr ou p. P os tSc ri pt
is a trademark of Adobe Systems Inc.
FONT="column_font"
FONTSIZE="size"
ITALIC="Yes" or "No"
BOLD="Yes" or "No"
HREF="URL"
HREFKEY="column_name"
TARGET="URL_target"
SELECT="Yes" or "No"
DISPLAY="Yes" or "No"
TYPE="type"
HEADERFONT"font_name"
HEADERFONTSIZE="size"
HEADERITALIC="Yes" or "No"
HEADERBOLD="Yes" or "No"
DATAALIGN="position"
HEADERALIGN="position"
NUMBERFORMAT="format">
SORTCONTROL="nocase" and/or "desc" or "asc"
DN="distinguished_name"
STARTROW="row_number"
MODIFYTYPE="REPLACE" or "ADD" or "DELETE"
REBIND="Yes" or "No"
REFERRAL="number_of_allowed_hops"
SECURE="multi_field_security_string"
SEPARATOR="separator_character">
Quick Reference to CFML5
CFLOCATION
<CFLOCATION URL="url" ADDTOKEN="Yes" or "No">
CFLOCK
<CFLOCK
TIMEOUT="timeout in seconds "
SCOPE="Application" or "Server" or "Session"
NAME="lockname"
THROWONTIMEOUT="Yes" or "No"
TYPE= "ReadOnly" or "Exclusive ">
<!--- CFML to be synchronized --->
</CFLOCK>
CFLOOP
<CFLOOP INDEX="parameter_name"
FROM="beginning_value"
TO="ending_value"
STEP="increment">
...
HTML or CFML code to execute
...
</CFLOOP>
or
<CFLOOP CONDITION="expression">
or
<CFLOOP QUERY="query_name"
STARTROW="row_num"
ENDROW="row_num">
or
<CFLOOP INDEX="index_name"
LIST="list_items"
DELIMITERS="item_delimiter">
</CFLOOP>
GROOVECOLOR="color"
BGCOLOR="color"
TEXTCOLOR="color"
FONT="font_name"
FONTSIZE="integer"
ITALIC="Yes" or "No"
BOLD="Yes" or "No"
NOTSUPPORTED="text">
CFSTOREDPROC
<CFSTOREDPROC PROCEDURE="procedure name"
DATASOURCE="ds_name"
USERNAME="username"
PASSWORD="password"
DBSERVER="dbms"
DBNAME="database name"
BLOCKFACTOR="blocksize"
PROVIDER="COMProvider"
PROVIDERDSN="datasource"
DEBUG="Yes" or "No"
RETURNCODE="Yes" or "No">
CFSWITCH CFCASE CFDEFAULTCASE
<CFSWITCH EXPRESSION="expression">
<CFCASE VALUE="value" DELIMITERS="delimiters">
HTML and CFML tags
</CFCASE>
additional <CFCASE></CFCASE> tags
<CFDEFAULTCASE>
HTML and CFML tags
</CFDEFAULTCASE>
</CFSWITCH>
<CFTRANSACTION
ACTION="BEGIN" or "COMMIT" or "ROLLBACK"
ISOLATION="Read_Uncommitted" or "Read_Committed"
or "Repeatable_Read">
</CFTRANSACTION>
10Quick Reference to CFML
CFTREE
<CFTREE NAME="name"
REQUIRED="Yes" or "No"
DELIMITER="delimiter"
COMPLETEPATH="Yes" or "No"
APPENDKEY="Yes" or "No"
HIGHLIGHTHREF="Yes" or "No"
ONVALIDATE="script_name"
MESSAGE="text"
ONERROR="text"
FONT="font"
FONTSIZE="size"
ITALIC="Yes" or "No"
BOLD="Yes" or "No"
HEIGHT="integer"
WIDTH="integer"
VSPACE="integer"
HSPACE="integer"
ALIGN="alignment"
BORDER="Yes" or "No"
HSCROLL="Yes" or "No"
VSCROLL="Yes" or "No"
NOTSUPPORTED="text">
</CFTREE>
CFTREEITEM
<CFTREEITEM VALUE="text"
DISPLAY="text"
PARENT="parent_name"
IMG="filename"
IMGOPEN="filename"
HREF="URL"
TARGET="URL_target"
QUERY="queryname"
QUERYASROOT="Yes" or "No"
EXPAND="Yes" or "No">
CFTRY CFCATCH
<CFTRY>
... Add code here
<CFCATCH TYPE="exceptiontype">
... Add exception processing code here
</CFCATCH>
... Additional CFCATCH blocks go here
</CFTRY>
ColdFusion returns a wide variety of variables, such as those
returned in a CFDIRECTORY or CFFTP operation. Variables
are usually referenced by "scoping" the variable according to
its type, as in Session.varname, or Application.varname.
Variable scope
ColdFusion supports the Variables scope. Unscoped variables created with the CFSET tag acquire the Variables scope
by default. For example, the variable created by:
A custom tag can also set a Caller variable to provide information to the caller. The Caller variable is set as follows:
<CFSET Caller.
variable_name
= "value">
The calling page can access the variable with the <CFOUTPUT> tag:
<CFOUTPUT>#Caller.
variable_name
#</CFOUTPUT>
Request variable
Request variables store data that pertains to the processing
of a single page request. Request variables allow you to store
data in a structure that can be passed to nested tags, such as
Custom Tags, and processed once.
Set a Request variable to provide information to nested tags.
The Request variable is set as follows:
Each nested tag can access the variable with the <CFOUTPUT> tag:
<CFOUTPUT>#Request.
field_name1
field_name2
field_name3
field_name1
= "value">
= "value">
= "value">
#</CFOUTPUT>
Form variable
ColdFusion supports the Form variable FieldNames. FieldNames returns the names of the fields on a form. You can
use it on the action page associated with a form.
Form.FieldNames
Quick Reference to CFML19
ColdFusion Tag-Specific Variables
A number of ColdFusion tags return data as variables. For
example, the CFFILE tag returns file size information in the
FileSize variable, referenced as CFFILE.FileSize.
The following tags return data that can be referenced in variables:
•CFCATCH
•CFDIRECTORY
• CFERROR
•CFFILE
•CFFTP
•CFHTTP
•CFINDEX
•CFLDAP
•CFMAIL
•CFPOP
• CFQUERY
•CFREGISTRY
•CFSEARCH
•CFSERVLET
• CFSTOREDPROC
ColdFusion query variables
Any ColdFusion tag that returns a query object supports the
following variables:
queryname
queryname
queryname
Where queryname is the value of the NAME attribute in each
tag.
.CurrentRow
.RecordCount
.ColumnList
CFCATCH variables
Within a CFCATCH block, the properties of the active exception can be accessed as variables:
When CFERROR generates an error page, the following error
variables are available if you have specified TYPE="Request",
TYPE="Exception" or TYPE="Monitor."
NOTE:You can substitute the prefix CFERROR for Error if you
have specified the type as "Exception" or "Monitor"; for example, CFERROR.Diagnostics, CFERROR.Mailto or CFERROR.DateTime.
Quick Reference to CFML21
CFFILE ACTION=Upload variables
File variables are read-only. Use the CFFILE. prefix to reference file variables: CFFILE.ClientDirectory. Note that
although still supported, the File. prefix is deprecated in
favor of the CFFILE. prefix.
When you use the CFFTP STOPONERROR attribute, three
variables are populated.
CFFTP.Succeeded
CFFTP.ErrorCode
CFFTP.ErrorText
CFFTP ReturnValue variable
Some of the CFFTP file and directory operations provide a
return value in the variable:
CFFTP.ReturnValue
The value of the CFFTP.ReturnValue variable is determined
by the results of the ACTION attribute used in CFFTP. When
you specify any of the following actions, CFFTP returns a
value:
• GetCurrentDir
• GetCurrentURL
•ExistsDir
• ExistsFile
•Exists
22Quick Reference to CFML
CFFTP query object columns
When you use CFFTP with the ListDir action, CFFTP returns a
query object. Queryname is the value of the NAME attribute
used in the CFFTP operation. Row is the row number for each
file/directory entry returned by the ListDir operation. A separate row is created for each entry.
queryname
queryname
queryname
queryname
queryname
.Name[
row
]
.Path[
row
]
.URL[
row
]
.Length[
.LastModified[
row
]
row
]
CFHTTP variables
CFHTTP GET operations can return text and binary files. Files
are downloaded and the contents stored in a variable or file,
depending on the MIME type.
CFLDAP returns information about the LDAP query if
ACTION=QUERY:
queryname
queryname
queryname
.CurrentRow
.RecordCount
.ColumnList
CFPOP variables
CFPOP returns the following result columns, depending on
the value of the ACTION attribute and the use of other
attributes like ATTACHMENTPATH. Queryname is the value of
the NAME attribute used in the CFPOP operation.
The CFREGISTRY tag returns a query record set that you can
reference after executing the GetAll action. Queryname is
the value of the NAME attribute used in the CFREGISTRY
operation.
queryname
queryname
queryname
.Entry
.Type
.Value
CFSEARCH variables
Every CFSEARCH operation returns the following variables.
Searchname is the value of the NAME attribute used in the
CFSEARCH operation.
If the WRITEOUTPUT attribute is NO, CFSERVLET returns the
text output of the servlet in the following variable:
CFSERVLET.Output
If the servlet returns any response headers, they are in the
CFSERVLET return structure. Each response header can be
accessed through a key. In the following syntax, servletRe-sponseHeader is a key, which is the name of the response
header set in the servlet:
CFSERVLET.
24Quick Reference to CFML
servletResponseHeader
Standard CGI Variables
This is a list of CGI 1.1 variables many Web servers create
when a CGI script is called.
NOTE: The CGI variables that are available for your use vary
with the Web server and configuration. Some of the following variables may not be available to you.
CLIENT_CERT_ENCODED variables are available only if you
are using client certificates.
Quick Reference to CFML25
ColdFusion Studio Keyboard Shortcuts
Studio offers a full set of keyboard commands for its tools
and functions. The listing below generally matches the order
of the menu commands, with related shortcuts added.
You can change shortcut key combinations and add new
ones by opening the Options > Customize dialog and selecting the Keyboard Shortcuts tab.
File and Document Keyboard Shortcuts
File and Document Shortcuts
CommandKey
File > Open Ctrl + O
File > Save Ctrl + S
File > Save AsShift + Ctrl + S
File > CloseCtrl + W
File > Close AllShift + Ctrl + W
File > PrintCtrl + P
Open default templateCTRL + N
Insert Code Template text/
open list
Edit > UndoCtrl + Z
Edit > RedoShift + Ctrl + Z
Edit > Repeat Last TagCtrl + Q
Edit > CutCtrl + X
Edit > CopyCtrl + C
Edit > PasteCtrl + V
Edit > Select AllCtrl + A
Edit > IndentShift + Ctrl + . (period)
Edit > UnindentShift + Ctrl + , (comma)
Edit > Toggle BookmarkCtrl + K
Edit > Goto Next BookmarkShift + Ctrl + K
Edit > Goto lineCtrl + G
Goto previous documentShift + Ctrl + Tab
Goto next documentCtrl + Tab
Ctrl + J
26Quick Reference to CFML
File and Document Shortcuts (Continued)
CommandKey
Goto next start tagCtrl + ] (right bracket)
Goto previous start tagCtrl + [ (left bracket)
Delete lineCtrl + Y
Delete stringCtrl + Del
Delete previous stringCtrl + Backspace
Search > FindCtrl + F
Search > ReplaceCtrl + R
Search > Find NextF3
Search > Extended FindShift + Ctrl + F
Search > Extended ReplaceShift + Ctrl + R
Tools > Tag ChooserCt rl+E
Tools > Expression BuilderShift + Ctrl + E
Tools > Spell CheckF7
Tools > Spell Check AllShift + F7
Tools > Mark Spelling ErrorsCtrl + F7
Tools > Validate DocumentShift + F6
Tools > Valida te Curre nt TagF6
Open Development
Mappings dialog
Open CodeSweeper dialogCtrl + Alt + F
Open Customize dialog Shift + F8
Execute current document as
ActiveScript
Options > SettingsF8
Options > CustomizeShift + F8
Tags > Insert Start tag < >Ctrl + , (comma)
Tags > Insert End tag < />Ctrl + . (period)
Tags > Open Anchor dialogShift + Ctrl + A
Tags > Insert Bold tagCtrl + B
Tags > Insert BR tagShift + Ctrl + B
Quick Reference to CFML27
Alt + M
Shift + Ctrl + Q
File and Document Shortcuts (Continued)
CommandKey
Tags > Insert BR tag and new
line
Tags > Insert Align Center
code
Tags > Insert Comment tagShift + Ctrl + M
Tags > Open IMG dialogShift + Ctrl + I
Tags > Insert Italic tagCtrl + I
Tags > Insert Non-breaking
Space
Tags > Insert Paragraph tagShift + Ctrl + P
Tags > Find Matching TagCtrl + M
Tags > Sho w Tag Tip fo r
current tag (Esc to close)
Tags > Edi t Current TagCtrl + F4
Tags > Inspect Current TagF4
Insert Underline tagCtrl + U
Insert # (pound sign)CTRL + 3
View > Full ScreenF10
Ctrl + Enter
Shift + Ctrl + C
Shift + Ctrl + Spacebar
F2
View > QuickBarCtrl + H
View > Resources TabF9
View > Results WindowShift + Ctrl + L
View > Special CharactersShift + Ctrl + X
View > Edit/Browse modes F12
View > Edit/Design modesShift + F12
View > Open in Macromedia
DreamWeaver
Open current document in
external browser
Tog gle focus betwe en Edi tor
and Resource tabs
Help > Show Help for Current
Tag (HTML )
28Quick Reference to CFML
Ctrl + D
F11
Shift + F9
F1
File and Document Shortcuts (Continued)
CommandKey
Show Tag Tip for current tag
(Esc to close)
Show Tag Insight for current
tag (Esc to close)
F2
Shift + F2
Debugger Keyboard Shortcuts
Debugger Shortcuts
CommandKey
Start/ContinueCtrl + F5
Start - No debuggingCtrl + Alt + F5
EndAlt + F5
RestartCtrl + Shift + F5
Step IntoCtrl + F8
Step OverCtrl + F9
Run To CursorCtrl + F11
VariablesAlt + Q
Watches Alt + W
RecordsetsAlt + R
StackAlt + K
OutputAlt + P
BreakpointsAlt + B
Tog gle Breakpoi ntA lt + X
Clear All BreakpointsAlt + F6
Debug SettingsAlt + Y
Development MappingsAlt + M
Quick Reference to CFML29
30Quick Reference to CFML
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.