coldfusion_9_cfmlref

1553
CFML Reference ADOBE ® COLDFUSION 9 ®

Transcript of coldfusion_9_cfmlref

ADOBE COLDFUSION 9

CFML Reference

2009 Adobe Systems Incorporated. All rights reserved.Copyright

Adobe ColdFusion 9 CFML Reference This reference is licensed for use under the terms of the Creative Commons Attribution Non-Commercial 3.0 License. This License allows users to copy, distribute, and transmit the reference for noncommercial purposes only so long as (1) proper attribution to Adobe is given as the owner of the reference; and (2) any reuse or distribution of the reference contains a notice that use of the guide is governed by these terms. The best way to provide notice is to include the following link. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ Adobe, the Adobe logo, and ColdFusion are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. Microsoft is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. All other trademarks are the property of their respective owners. Adobe Systems Incorporated, 345 Park Avenue, San Jose, California 95110, USA.

iii

ContentsChapter 1: Introduction About Adobe ColdFusion 9 documentation ............................................................................ 1

Chapter 2: Reserved Words and Variables Reserved words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Scope-specific built-in variables Custom tag variables ColdFusion tag-specific variables ........................................................................................ 4 ...................................................................................... 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 .................................................................................................. 5

CGI environment (CGI Scope) variables

Chapter 3: ColdFusion Tags New tags in ColdFusion 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Tag summary Tags by function Tags a-b Tags c Tags d-e Tags f Tags g-h Tags I Tags J-L Tags m-o Tags p-q Tags r-s Tags t Tags u-z . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Tag changes since ColdFusion 5

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662

Chapter 4: ColdFusion Functions New Functions in ColdFusion 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 687 Functions by category Functions a-b Functions c-d Functions e-g Functions h-im Functions in-k Functions l Functions m-r Functions s Functions t-z . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 688 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 694 Function changes since ColdFusion 5

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 700 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 746 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 825 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 915 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 991 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1099 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1158 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1254

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1042

COLDFUSION 9 CFML REFERENCE ivContents

Chapter 5: Ajax JavaScript Functions Function summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1305 ColdFusion.Ajax.submitForm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1307 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1308 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1309 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1310 ColdFusion.FileUpload.cancelUpload ColdFusion.FileUpload.clearAllFiles ColdFusion.FileUpload.startUpload ColdFusion.getElementValue ColdFusion.Grid.getGridObject ColdFusion.Grid.refresh ColdFusion.Grid.sort ColdFusion.JSON.decode ColdFusion.JSON.encode

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1311 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1312

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1313 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1315 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1316 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1317 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1319 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1318 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1321 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1323 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1324 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1325 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1326 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1326 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1327 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1328

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1314

ColdFusion.Layout.collapseAccordion ColdFusion.Layout.collapseArea ColdFusion.Layout.createTab ColdFusion.Layout.disableTab ColdFusion.Layout.enableTab ColdFusion.Layout.expandArea

ColdFusion.Layout.createAccordionPanel

ColdFusion.Layout.expandAccordion ColdFusion.Layout.getAccordionLayout ColdFusion.Layout.getBorderLayout ColdFusion.Layout.getTabLayout ColdFusion.Layout.hideAccordion ColdFusion.Layout.hideArea ColdFusion.Layout.hideTab ColdFusion.Layout.selectTab ColdFusion.Layout.showArea ColdFusion.Layout.showTab ColdFusion.Log.debug ColdFusion.Log.dump ColdFusion.Log.error ColdFusion.Log.info

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1328

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1329 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1330 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1331 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1334 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1332 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1334 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1335

ColdFusion.Layout.selectAccordion ColdFusion.Layout.showAccordion

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1336 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1337 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1338 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1338 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1339 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1340 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1341 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1342 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1345 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1346 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1347 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1347 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1348 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1349

ColdFusion.Map.addEvent ColdFusion.Map.addMarker

ColdFusion.Map.getLatitudeLongitude ColdFusion.Map.getMapObject ColdFusion.Map.setCenter ColdFusion.Map.setZoomlevel ColdFusion.MediaPlayer.resize ColdFusion.MediaPlayer.setMute ColdFusion.MediaPlayer.setSource ColdFusion.MediaPlayer.setVolume ColdFusion.MediaPlayer.startPlay

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1343

COLDFUSION 9 CFML REFERENCE vContents

ColdFusion.MediaPlayer.stopPlay ColdFusion.MessageBox.create ColdFusion.MessageBox.show

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1350 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1351

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1353 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1354 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1355

ColdFusion.MessageBox.getMessageBoxObject ColdFusion.MessageBox.isMessageBoxDefined ColdFusion.MessageBox.update ColdFusion.MessageBox.updateMessage ColdFusion.MessageBox.updateTitle ColdFusion.navigate

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1355 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1357 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1358 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1360

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1359 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1361 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1362 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1362 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1363 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1364 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1364 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1365 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1366

ColdFusion.ProgressBar.getProgressBarObject ColdFusion.ProgressBar.hide ColdFusion.ProgressBar.reset ColdFusion.ProgressBar.show ColdFusion.ProgressBar.start ColdFusion.ProgressBar.stop

ColdFusion.ProgressBar.update

ColdFusion.ProgressBar.updatestatus ColdFusion.setGlobalErrorHandler ColdFusion.Slider.disable ColdFusion.Slider.enable ColdFusion.Slider.getValue ColdFusion.Slider.hide ColdFusion.Slider.show

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1367 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1367 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1368 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1369

ColdFusion.Slider.getSliderObject

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1370 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1371 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1372 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1373 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1374 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1374 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1376 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1377 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1378 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1379 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1380

ColdFusion.Slider.setValue ColdFusion.Tree.refresh ColdFusion.Window.create ColdFusion.Window.hide ColdFusion.Window.onHide ColdFusion.Window.onShow ColdFusion.Window.show

ColdFusion.Tree.getTreeObject

ColdFusion.Window.getWindowObject

Chapter 6: Script Functions Implemented as CFCs Accessing the functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1382 Function summary ftp http mail pdf query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1382 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1382 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1385 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1389 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1393 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1396 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1400

storedproc

Chapter 7: ColdFusion Flash Form Style Reference Styles valid for all controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1404 Styles for cfform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1406

COLDFUSION 9 CFML REFERENCE viContents

Styles for cfformgroup with horizontal or vertical type attributes Styles for box-style cfformgroup elements Styles for cfformgroup with accordion type attribute Styles for cfformgroup with tabnavigator type attribute Styles for cfformitem with hrule or vrule type attributes

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1406

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1406 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1408 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1408 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1408 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1409 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1410

Styles for cfinput with radio, checkbox, button, image, or submit type attributes Styles for cftextarea tag and cfinput with text, password, or hidden type attributes Styles for cfselect with size attribute value of 1 Styles for cfselect with size attribute value greater than 1 Styles for the cfgrid tag Styles for the cftree tag

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1410 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1411 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1411

Styles for cfcalendar tag and cfinput with dateField type attribute

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1412 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1412

Chapter 8: Application.CFC Reference Application variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1413 Method summary onApplicationEnd onApplicationStart onCFCRequest onError onRequest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1415 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1415 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1416

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1417 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1421

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1419 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1422 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1424 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1425 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1426 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1427 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1428

onMissingTemplate onRequestEnd onRequestStart onSessionEnd onSessionStart onServerStart

Chapter 9: ColdFusion Event Gateway Reference Gateway development interfaces and classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1430 Gateway interface Constructor getGatewayID getHelper getStatus restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1430 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1431 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1432 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1432 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1433 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1434 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1436 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1437

outgoingMessage setCFCListeners setGatewayID start stop

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1435

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1438 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1439 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1440 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1440 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1440

GatewayHelper interface GatewayServices class getGatewayServices addEvent getLogger

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1441 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1442 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1443

getMaxQueueSize

COLDFUSION 9 CFML REFERENCE viiContents

getQueueSize CFEvent class CFEvent getCFCMethod getCFCPath getData getCFCTimeout getGatewayID getOriginatorID setCFCMethod setCFCPath setData setCFCTimeout setGatewayType setOriginatorID Logger class debug error fatal info warn

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1444 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1444 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1446 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1447 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1449 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1449 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1450 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1451 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1453 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1455 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1456

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1445 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1447

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1448

getGatewayType

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1452

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1454

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1457

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1457 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1458 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1459 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1460 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1461 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1462 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1462 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1462

CFML CFEvent structure

IM gateway methods and commands onAddBuddyRequest onAddBuddyResponse onBuddyStatus onIMServerMessage onIncomingMessage

IM Gateway CFC incoming message methods

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1463 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1465 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1468 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1469 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1470 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1471

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1466

IM gateway message sending commands IM Gateway GatewayHelper class methods addBuddy addDeny addPermit

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1471 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1472 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1473 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1474 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1475 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1476 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1476 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1477 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1478 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1478 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1479 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1479 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1480

getBuddyInfo getBuddyList getDenyList getName getNickName getPermitList getPermitMode

getCustomAwayMessage

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1477

getProtocolName getStatusAsString

getStatusTimeStamp

COLDFUSION 9 CFML REFERENCE viiiContents

isOnline

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1480 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1481

numberOfMessagesReceived numberOfMessagesSent removeBuddy removeDeny removePermit setNickName setPermitMode setStatus

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1483 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1484 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1484 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1486 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1487

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1485

SMS Gateway CFEvent structure and commands SMS gateway message sending commands submit command data command submitMulti command

SMS Gateway incoming message CFEvent structure

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1488

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1488 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1490 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1492 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1491

CFML event gateway SendGatewayMessage data parameter

Chapter 10: ColdFusion C++ CFX Reference C++ class overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1494 Deprecated class methods CCFXException class CCFXQuery class CCFXRequest class CCFXStringSet class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1495 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1495 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1500 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1509

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1496

Chapter 11: ColdFusion Java CFX Reference Class libraries overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1512 Custom tag interface Query interface Request interface Response interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1512 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1513 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1518 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1523 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1526

Debugging classes reference

Chapter 12: WDDX JavaScript Objects JavaScript object overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1528 WddxSerializer object WddxRecordset object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1528 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1532

Chapter 13: ColdFusion ActionScript Functions CF.query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1538 CF.http . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1540

1

Chapter 1: IntroductionThe CFML Reference is your primary ColdFusion Markup Language (CFML) reference. Use this manual to learn about CFML tags and functions, ColdFusion expressions, and using JavaScript objects for WDDX in Adobe ColdFusion 8. It also provides detailed references for Java and C++ CFX interfaces.

About Adobe ColdFusion 9 documentationThe ColdFusion documentation is designed to provide support for the complete spectrum of participants.

Documentation setThe ColdFusion documentation set includes the following titles:Manual Installing Adobe ColdFusion 9 Description Describes system installation and basic configuration for Windows, Macintosh, Solaris, Linux, and AIX. Configuring and Administering Adobe ColdFusion 9 Describes how to perform ColdFusion administration tasks such as managing server settings, configuring datasources, managing security, deploying ColdFusion applications, caching, setting up CFX tags, monitoring server activity using the ColdFusion Server Monitor, and configuring web servers. Describes how to develop your dynamic web applications. This book provides detailed information about using the CFML programming language and ColdFusion features, such as ColdFusion Web Services, ColdFusion Portlets, ColdFusion ORM, AJAX support, Flex and AIR integration, and integration with other products and technologies such as Microsoft Office, OpenOffice, and SharePoint. Provides descriptions, syntax, usage, and code examples for all ColdFusion tags, functions, and variables.

Developing Adobe ColdFusion 9 Applications

Adobe ColdFusion 9 CFML Reference

Viewing online documentationAll ColdFusion documentation is available online in HTML and Adobe PDF files. Go to the ColdFusion Help and Support page at www.adobe.com/go/learn_cfu_support_en to view the online documentation. In addition to viewing the online documentation, you can also add and view comments to the documentation.

2

Chapter 2: Reserved Words and VariablesAdobe ColdFusion language includes reserved words and scope variables.

Reserved wordsThe following list indicates words you must not use for ColdFusion variables, user-defined function names, or custom tag names. Although you can safely use some of these words in some situations, you can prevent errors by avoiding them entirely.

Any name starting with cf. However, when you call a CFML custom tag directly, you prefix the custom tag page name with cf_. Built-in function names, such as Now or Hash Scope names, such as Form or Session Operators, such as NE or IS The names of any built-in data structures, such as Error or File The names of any built-in variables, such as RecordCount or CGI variable names The following CFScript language element names: for default continue import finally local (inside function declaration) interface pageencodingRemember that ColdFusion is not case sensitive. For example, all of the following are reserved words: IS, Is, iS, and is.

Reserved words in formsDo not create form field names that end in any of the following, except to specify a form field validation rule by using a hidden form field name.

_integer _float _range _date _time _eurodate

COLDFUSION 9 CFML REFERENCE 3Reserved Words and Variables

Reserved words in queriesThe following table lists SQL keywords that are reserved in ColdFusion queries of queries. This list includes all reserved words in the SQL standard. Avoid them in variables used in all queries. Do not use these keywords as variable names in any queries. Note: Many database management systems have additional reserved words that you cannot use as variable names in queries to their databases. For a detailed list, see your DBMS documentation.ABSOLUTE ALTER ASC BEGIN BY CATALOG CHECK COLUMN CONSTRAINTS CREATE CURRENT_TIMESTAMP DEALLOCATE DEFERRABLE DESCRIPTOR DOUBLE ESCAPE EXISTS FIRST FROM GOTO IDENTITY INNER INTEGER ISOLATION LEADING LOWER MODULE NCHAR NULLIF ONLY ACTION AND ASSERTION BETWEEN CASCADE CHAR CLOSE COMMIT CONTINUE CROSS CURRENT_USER DEC DEFERRED DIAGNOSTICS DROP EXCEPT EXTERNAL FLOAT FULL GRANT IMMEDIATE INPUT INTERSECT JOIN LEFT MATCH MONTH NEXT NUMERIC OPEN ADD ANY AT BIT CASCADED CHARACTER COALESCE CONNECT CONVERT CURRENT CURSOR DECIMAL DELETE DISCONNECT ELSE EXCEPTION EXTRACT FOR GET GROUP IN INSENSITIVE INTERVAL KEY LEVEL MAX NAMES NO OCTET_LENGTH OPTION ALL ARE AUTHORIZATION BIT_LENGTH CASE CHARACTER_LENGTH COLLATE CONNECTION CORRESPONDING CURRENT_DATE DATE DECLARE DESC DISTINCT END EXEC FALSE FOREIGN GLOBAL HAVING INDICATOR INSERT INTO LANGUAGE LIKE MIN NATIONAL NOT OF OR ALLOCATE AS AVG BOTH CAST CHAR_LENGTH COLLATION CONSTRAINT COUNT CURRENT_TIME DAY DEFAULT DESCRIBE DOMAIN END-EXEC EXECUTE FETCH FOUND GO HOUR INITIALLY INT IS LAST LOCAL MINUTE NATURAL NULL ON ORDER

COLDFUSION 9 CFML REFERENCE 4Reserved Words and Variables

OUTER POSITION PRIOR REAL RIGHT SECOND SET SQL SUM TIME TRAILING TRUE UPPER VALUES WHENEVER YEAR

OUTPUT PRECISION PRIVILEGES REFERENCES ROLLBACK SECTION SIZE SQLCODE SYSTEM_USER TIMESTAMP TRANSACTION UNION USAGE VARCHAR WHERE ZONE

OVERLAPS PREPARE PROCEDURE RELATIVE ROWS SELECT SMALLINT SQLERROR TABLE TIMEZONE_HOUR TRANSLATE UNIQUE USER VARYING WITH

PAD PRESERVE PUBLIC RESTRICT SCHEMA SESSION SOME SQLSTATE TEMPORARY TIMEZONE_MINUTE TRANSLATION UNKNOWN USING VIEW WORK

PARTIAL PRIMARY READ REVOKE SCROLL SESSION_USER SPACE SUBSTRING THEN TO TRIM UPDATE VALUE WHEN WRITE

Scope-specific built-in variablesColdFusion returns variables, such as those returned in a cfdirectory or cfftp operation. A variable is usually referenced by scoping it according to its type: naming it according to the code context in which it is available; for example, Session.varname, or Application.varname. For more information on ColdFusion scopes, see Using ColdFusion Variables in the Developing ColdFusion Applications You use the cflock tag to limit the scope of CFML constructs that modify shared data structures, files, and CFXs, to ensure that modifications occur sequentially. For more information, see cflock on page 377, and Using Persistent Data and Locking in the Developing ColdFusion Applications.

Variable scopeColdFusion supports the Variables scope. Unscoped variables created with the cfset tag acquire the Variables scope by default. For example, the variable created by the statement can be referenced as#Variables.linguist#.

Caller scopeHistory ColdFusion MX: The Caller scope is accessible as a structure. (In earlier releases, it was not.)

COLDFUSION 9 CFML REFERENCE 5Reserved Words and Variables

CGI variablessee CGI environment (CGI Scope) variables on page 11

Client variablesThe following client variables are reserved:Client.CFID Client.CFToken Client.HitCount Client.LastVisit Client.TimeCreated Client.URLToken

Server variablesUse the Server prefix to reference server variables, as follows:Server.ColdFusion.ProductName Server.ColdFusion.ProductVersion Server.ColdFusion.ProductLevel Server.ColdFusion.SerialNumber Server.ColdFusion.SupportedLocales Server.ColdFusion.AppServer Server.ColdFusion.Expiration Server.ColdFusion.RootDir Server.OS.Name Server.OS.AdditionalInformation Server.OS.Version Server.OS.BuildNumber

Application and session variablesTo enable application and session variables, use the cfapplication tag or Application.cfc. Reference them as follows:Application.myvariable Session.myvariable

To ensure that modifications to shared data occur in the intended sequence, use the cflock tag. For more information, see cflock on page 377. ColdFusion provides the following predefined application and session variables:Application.ApplicationName Session.CFID Session.CFToken Session.URLToken

Custom tag variablesA ColdFusion custom tag returns the following variables:

COLDFUSION 9 CFML REFERENCE 6Reserved Words and Variables

ThisTag.ExecutionMode ThisTag.HasEndTag ThisTag.GeneratedContent ThisTag.AssocAttribs[index]

A custom tag can set a Caller variable to provide information to the caller. Set the Caller variable as follows:

The calling page can access the variable with the cfoutput tag, as follows:#variable_name#

Request variableRequest variables store data about the processing of one page request. Request variables store data in a structure that can be passed to nested tags, such as custom tags, and processed once. To provide information to nested tags, set a Request variable, as follows: ...

Each nested tag can access the variable with the cfoutput tag, as follows:#Request.field_name1#

Form variableColdFusion supports the Form variable FieldNames. FieldNames returns the names of the fields on a form. You use it on the action page associated with a form, as follows:Form.FieldNames

ColdFusion tag-specific variablesSome 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 you can reference in variables:cfcatch cfdirectory cferror cffile cfftp cfhttp cfindex cfldap cfpop cfquery cfregistry cfsearch cfstoredproc

COLDFUSION 9 CFML REFERENCE 7Reserved Words and Variables

ColdFusion query variablesA ColdFusion tag that returns a query object supports the following variables, where queryname is the value of the name attribute:queryname.CurrentRow queryname.RecordCount queryname.ColumnList

CFCATCH variablesWithin a cfcatch block, the active exception properties can be accessed as the following variables:CFCATCH.Type CFCATCH.Message CFCATCH.Detail CFCATCH.ErrNumber CFCATCH.NativeErrorCode CFCATCH.SQLState CFCATCH.LockName CFCATCH.LockOperation CFCATCH.MissingFileName CFCATCH.TagContext CFCATCH.ErrorCode CFCATCH.ExtendedInfo

Within a cfcatch block, database exception properties can be accessed as the following variables:CFCATCH.QueryError CFCATCH.SQL CFCATCH.Where CFCATCH.Datasource

Within a cfcatch block, undefined variable exception properties can be accessed as the following variable:CFCATCH.Name

Within a cfcatch block, syntax and parsing exception properties can be accessed as the following variables:CFCATCH.TokenText CFCATCH.Snippet CFCATCH.Column CFCATCH.KnownColumn CFCATCH.Line CFCATCH.KnownLine

CFDIRECTORY variablesThe cfdirectory tag, with action=list, returns a query object as follows, where queryname is the name attribute value:queryname.Name queryname.Size queryname.Type queryname.DateLastModified queryname.Attributes queryname.Mode

COLDFUSION 9 CFML REFERENCE 8Reserved Words and Variables

CFERROR variablesWhen cferror generates an error page, the following error variables are available if type="request" or "exception".Error.Diagnostics Error.MailTo Error.DateTime Error.Browser Error.GeneratedContent Error.RemoteAddress Error.HTTPReferer Error.Template Error.QueryString

The following error variables are available if type="validation".Error.ValidationHeader Error.InvalidFields Error.ValidationFooter

Any cfcatch variable that applies to exception type can be accessed within the Error scope, as follows:Error.Type Error.Message Error.Detail Error.ErrNumber Error.NativeErrorCode Error.SQLState Error.LockName Error.LockOperation Error.MissingFileName Error.TagContext Error.ErrorCode Error.ExtendedInfo

Note: You can substitute the prefix CFERROR for Error, if type = "Exception"; for example, CFERROR.Diagnostics, CFERROR.Mailto, or CFERROR.DateTime.

CFFILE ACTION=Upload variablesFile variables are read-only. Use the CFFILE prefix to reference file variables, for example, CFFILE.ClientDirectory. The File prefix is deprecated in favor of the CFFILE prefix.

COLDFUSION 9 CFML REFERENCE 9Reserved Words and Variables

CFFILE.AttemptedServerFile CFFILE.ClientDirectory CFFILE.ClientFile CFFILE.ClientFileExt CFFILE.ClientFileName CFFILE.ContentSubType CFFILE.ContentType CFFILE.DateLastAccessed CFFILE.FileExisted CFFILE.FileSize CFFILE.FileWasAppended CFFILE.FileWasOverwritten CFFILE.FileWasRenamed CFFILE.FileWasSaved CFFILE.OldFileSize CFFILE.ServerDirectory CFFILE.ServerFile CFFILE.ServerFileExt CFFILE.ServerFileName CFFILE.TimeCreated CFFILE.TimeLastModified

CFFTP error variablesWhen you use the cfftp stoponerror attribute, the following variables are populated:CFFTP.Succeeded CFFTP.ErrorCode CFFTP.ErrorText

CFFTP ReturnValue variableSome cfftp file and directory operations provide a return value, in the variable CFFTP.ReturnValue. Its value is determined by the results of the action attribute. When you specify any of the following actions, cfftp returns a value:GetCurrentDir GetCurrentURL ExistsDir ExistsFile Exists

CFFTP query object columnsWhen you use the cfftp tag with the listdir action, cfftp returns a query object, where queryname is the name attribute value, and row is the row number of each file or directory entry:queryname.Name[row] queryname.Path[row] queryname.URL[row] queryname.Length[row] queryname.LastModified[row] queryname.Attributes queryname.IsDirectory queryname.Mode

COLDFUSION 9 CFML REFERENCE 10Reserved Words and Variables

CFHTTP variablesA cfhttp get operation can return text and binary files. Files are downloaded and the contents stored in a variable or file, depending on the MIME type, as follows:CFHTTP.FileContent CFHTTP.MimeType CFHTTP.Header CFHTTP.ResponseHeader[http_hd_key] CFHTTP.StatusCode

CFLDAP variablesThe cfldapaction=query tag returns information about the LDAP query, as follows:queryname.CurrentRow queryname.RecordCount queryname.ColumnList

CFPOP variablesThe cfpop tag returns the following result columns, depending on the action attribute value and the use of other attributes, such as attachmentpath, where queryname is the name attribute value:queryname.Date queryname.From queryname.Body queryname.Header queryname.MessageNumber queryname.ReplyTo queryname.Subject queryname.CC queryname.To queryname.CurrentRow queryname.RecordCount queryname.ColumnList queryname.Attachments queryname.AttachmentFiles

CFQUERY and CFSTOREDPROC variablesThe cfquery tag returns information about the query in this variable:CFQUERY.ExecutionTime

The cfquery tag uses the query name to scope the following data about the query:queryname.CurrentRow queryname.RecordCount queryname.ColumnList

The cfstoredproc tag returns the following variables:CFSTOREDPROC.ExecutionTime CFSTOREDPROC.StatusCode

COLDFUSION 9 CFML REFERENCE 11Reserved Words and Variables

CFREGISTRY variablesThe cfregistry tag returns a query record set that you can reference after executing the GetAll action, as follows, where queryname is the name attribute value:queryname.Entry queryname.Type queryname.Value

CFSEARCH variablesA cfsearch operation returns the following variables, where searchname is the name attribute value:searchname.URL searchname.Key searchname.Title searchname.Score searchname.Custom1 and Custom2 searchname.Summary searchname.RecordCount searchname.CurrentRow searchname.RecordsSearched searchname.ColumnList

CGI environment (CGI Scope) variablesWhen a browser makes a request to a server, the web server and the browser create environment variables. In ColdFusion, these variables are referred to as CGI environment variables. CGI Environment variables contain data about the transaction between the browser and the server, such as the IP Address, browser type, and authenticated username. The available CGI variables depend on the browser and server software. The CGI variables are available to ColdFusion pages in the CGI scope. They take the CGI prefix regardless of whether the server uses a server API or CGI to communicate with the ColdFusion server. You can reference CGI environment variables for a given page request anywhere in the page. CGI variables are read-only. By default, when you use the cfdump tag to display the CGI scope, or when you request debug output of the CGI scope, ColdFusion attempts to display a fixed list of standard CGI environment variables. Because the available variables depend on the server, browser, and the types of interactions between the two, not all variables are normally available. They are represented by empty strings in the debug output. You can request any CGI variable in your application code, including variables that are not in the list variables displayed by dump and debug output. ColdFusion checks for the following variables for the cfdump tag and debug output:

COLDFUSION 9 CFML REFERENCE 12Reserved Words and Variables

AUTH_PASSWORD AUTH_TYPE AUTH_USER CERT_COOKIE CERT_FLAGS CERT_ISSUER CERT_KEYSIZE CERT_SECRETKEYSIZE CERT_SERIALNUMBER CERT_SERVER_ISSUER CERT_SERVER_SUBJECT CERT_SUBJECT CF_TEMPLATE_PATH CONTENT_LENGTH CONTENT_TYPE CONTEXT_PATH GATEWAY_INTERFACE HTTPS HTTPS_KEYSIZE HTTPS_SECRETKEYSIZE HTTPS_SERVER_ISSUER HTTPS_SERVER_SUBJECT HTTP_ACCEPT HTTP_ACCEPT_ENCODING HTTP_ACCEPT_LANGUAGE HTTP_CONNECTION HTTP_COOKIE HTTP_HOST HTTP_REFERER HTTP_USER_AGENT QUERY_STRING REMOTE_ADDR REMOTE_HOST REMOTE_USER REQUEST_METHOD SCRIPT_NAME SERVER_NAME SERVER_PORT SERVER_PORT_SECURE SERVER_PROTOCOL SERVER_SOFTWARE WEB_SERVER_API (This value is always blank; retained for compatibility.)

The following sections describe how to test for CGI environment variables and provide information on some of the more commonly used CGI environment variables

Testing for CGI variablesBecause some browsers do not support some CGI variables, ColdFusion always returns true when it tests for the existence of a CGI variable, regardless of whether the browser supports the variable. To determine if the CGI variable is available, test for an empty string, as the following example shows:

COLDFUSION 9 CFML REFERENCE 13Reserved Words and Variables

CGI variable exists CGI variable does not exist

CGI server variablesThe following table describes common CGI environment variables that the server creates (some variables are not available with some servers):CGI server variableSERVER_SOFTWARE

Description Name and version of the information server software answering the request (and running the gateway). Format: name/version. Server's hostname, DNS alias, or IP address as it appears in self-referencing URLs. CGI specification revision with which this server complies. Format: CGI/revision. Name and revision of the information protocol this request came in with. Format: protocol/revision. Port number to which the request was sent. Method with which the request was made. For HTTP, this is Get, Head, Post, and so on. Extra path information, as given by the client. Scripts can be accessed by their virtual pathname, followed by extra information at the end of this path. The extra information is sent as PATH_INFO. Translated version of PATH_INFO after any virtual-to-physical mapping. Virtual path to the script that is executing; used for self-referencing URLs. Query information that follows the ? in the URL that referenced this script. Hostname making the request. If the server does not have this information, it sets REMOTE_ADDR and does not set REMOTE_HOST. IP address of the remote host making the request. If the server supports user authentication, and the script is protected, the protocol-specific authentication method used to validate the user. If the server supports user authentication, and the script is protected, the username the user has authenticated as. (Also available as AUTH_USER.) If the HTTP server supports RFC 931 identification, this variable is set to the remote username retrieved from the server. Use this variable for logging only. For queries that have attached information, such as HTTP POST and PUT, this is the content type of the data. Length of the content as given by the client.

SERVER_NAME GATEWAY_INTERFACE SERVER_PROTOCOL SERVER_PORT REQUEST_METHOD PATH_INFO

PATH_TRANSLATED SCRIPT_NAME QUERY_STRING REMOTE_HOST

REMOTE_ADDR AUTH_TYPE

REMOTE_USERAUTH_USER REMOTE_IDENT

CONTENT_TYPE CONTENT_LENGTH

CGI client variablesThe following table describes common CGI environment variables the browser creates and passes in the request header:

COLDFUSION 9 CFML REFERENCE 14Reserved Words and Variables

CGI client variableHTTP_REFERER HTTP_USER_AGENT HTTP_IF_MODIFIED_SINCE

Description The referring document that linked to or submitted form data. The browser that the client is currently using to send the request. Format: software/version library/version. The last time the page was modified. The browser determines whether to set this variable, usually in response to the server having sent the LAST_MODIFIED HTTP header. It can be used to take advantage of browser-side caching.

CGI client certificate variablesColdFusion makes available the following client certificate data. These variables are available when running Microsoft IIS 4.0 or Netscape Enterprise under SSL if your web server is configured to accept client certificates.CGI client certificate variableCERT_SUBJECT

Description Client-specific information provided by the web server. This data typically includes the client's name, e-mail address, and so on, for example:O = "VeriSign, Inc.", OU = VeriSign Trust Network, OU = "www.verisign.com/repository/RPA Incorp. by Ref.,LIAB.LTD(c)98", OU = Persona Not Validated, OU = Digital ID Class 1 - Microsoft, CN = Matthew Lund, E = [email protected]

CERT_ISSUER

Information about the authority that provided the client certificate, for example:O = "VeriSign, Inc.", OU = VeriSign Trust Network, OU = "www.verisign.com/repository/RPA Incorp. By Ref.,LIAB.LTD(c)98", CN = VeriSign Class 1 CA Individual Subscriber-Persona Not Validated

15

Chapter 3: ColdFusion TagsColdFusion Markup Language (CFML) includes a set of tags that you use in ColdFusion pages to interact with data sources, manipulate data, and display output. CFML tag syntax is similar to HTML element syntax. The following categorized and alphabetical lists of the tags are followed by the detailed tag descriptions.

New tags in ColdFusion 9The following table briefly describes CFML tags added in ColdFusion 9:CFML tagcfcontinue cffileupload

Category Flow-control tags File management tags, Forms tags Exception handling tags Communications tags, Internet protocol tags Other tags Other tags Other tags

Description Returns processing to the top of a loop; used within a cfloop tag. Displays a dialog for uploading multiple files from the user's system.

cffinally cfimap

Used inside a cftry tag Retrieves and manages e-mails and folders in IMAP servers

cfmap cfmapitem cfmediaplayer cfmessagebox cfprogressbar cfsharepoint cfspreadsheet

Embeds a Google map within a ColdFusion web page Creates markers on the map; a child tag of the cfmap tag Creates an in-built media player that can play FLV files

Application framework tags Defines a control for displaying pop-up messages Other tags Extensibility tags Extensibility tags Defines a progress bar to indicate the progress of an activity Invokes a SharePoint action from ColdFusion Manages Excel spreadsheet files

Tag summaryThe following table briefly describes CFML tags:CFML tagcfabort cfajaximport

Category Flow-control tags Internet protocol tags

Description Stops the processing of a ColdFusion page at the tag location Controls importation of JavaScript files used for ColdFusion AJAX-based features Generates an AJAX proxy class on the client page for a ColdFusion component Embeds Java applets in a cfform tag

cfajaxproxy cfapplet cfapplication

Internet protocol tags Forms tags

Application framework tags Defines an application name; activates client variables; specifies client variable storage mechanism

COLDFUSION 9 CFML REFERENCE 16ColdFusion Tags

CFML tagcfargument

Category Extensibility tags

Description Creates a parameter definition within a component definition; defines a function argument

cfassociate cfbreak cfcache cfcalendar cfcase cfcatch

Application framework tags Enables subtag data to be saved with a base tag Flow-control tags Page processing tags Forms tags Flow-control tags Exception handling tags, Flow-control tags Breaks out of a CFML looping construct Caches ColdFusion pages Provides a calendar from which to select a date Used with the cfswitch and cfdefaultcase tags Catches exceptions in ColdFusion pages

cfchart cfchartdata cfchartseries cfcol cfcollection cfcomponent cfcontent

Data output tags Data output tags Data output tags Data output tags Extensibility tags Extensibility tags Data output tags, Page processing tags

Generates and displays a chart Defines chart data points Defines style in which chart data displays Defines table column header, properties Administers Verity collections Creates and defines a component object Defines content type and filename of a file to be downloaded by the current page Returns processing to the top of a loop; used within a cfloop tag. Defines and sets cookie variables, including expiration and security options

cfcontinue cfcookie cfdbinfo cfdefaultcase cfdirectory cfdiv cfdocument

Flow-control tags Variable manipulation tags

Database manipulation tags Lets you retrieve information about a data source Flow-control tags File management tags Display management tags Data output tags Receives control if there is no matching cfcase tag value Performs typical directory-handling tasks from within a ColdFusion application Creates an HTML tag with that is populated using a bind expressions. Creates PDF or Adobe FlashPaper output from a text block that contains CFML and HTML Specifies action items, such as header, footer, and page break, for a PDF or FlashPaper document Divides a PDF or FlashPaper document into sections Outputs variables for debugging

cfdocumentitem

Data output tags

cfdocumentsection cfdump

Data output tags Debugging tags, Variable manipulation tags

cfelse cfelseif cferror

Flow-control tags Flow-control tags Exception handling tags, Application framework tags

Creates IF-THEN-ELSE constructs Creates IF-THEN-ELSE constructs Displays custom HTML error pages when errors occur

cfexchangecalendar

Communications tags

Gets, creates, deletes, modifies, or responds to Microsoft Exchange calendar events

COLDFUSION 9 CFML REFERENCE 17ColdFusion Tags

CFML tagcfexchangeconnection cfexchangecontact cfexchangefilter cfexchangemail cfexchangetask cfexecute

Category Communications tags Communications tags Communications tags Communications tags Communications tags Flow-control tags, Extensibility tags

Description Opens or closes a persistent connection with an Exchange server Gets, creates, deletes, or modifies Exchange contacts Sets filter conditions used in Exchange tag get operations Gets and deletes Exchange mail messages and sets message properties Gets, creates, deletes, or modifies an Exchange user task Executes developer-specified process on server computer

cfexit cffeed

Flow-control tags Communications tags, Internet protocol tags File management tags File management tagsForms tags Exception handling tags Data output tags, Page processing tags

Aborts processing of executing CFML tag Reads, creates, and converts, Atom and RSS syndication feeds

cffile cffileupload

Performs typical file-handling tasks from within ColdFusion application Displays a dialog for uploading multiple files from the user's system.

cffinally cfflush

Used inside a cftry tag Flushes currently available data to client

cfform cfformgroup cfformitem cfftp

Forms tags Forms tags Forms tags Forms tags, Extensibility tags, Internet protocol tags

Builds input form; performs client-side input validation Groups form control into a containing object Adds text and dividing rules to Adobe Flash forms Permits FTP file operations

cffunction cfgrid cfgridcolumn cfgridrow cfgridupdate cfheader

Extensibility tags Forms tags Forms tags Forms tags Forms tags Data output tags, Page processing tags

Defines function that you build in CFML Displays tabular grid control, in cfform tag Used in cfform; defines columns in a cfgrid Defines a grid row; used with cfgrid Directly updates ODBC data source from edited grid data Generates HTTP headers

cfhtmlhead cfhttp

Page processing tags Internet protocol tags

Writes text and HTML to HEAD section of page Performs GET and POST to upload file or post form, cookie, query, or CGI variable directly to server Specifies parameters required for a cfhttp POST operation; used withcfhttp

cfhttpparam

Internet protocol tags

cfif cfimage

Flow-control tags Other tags

Creates IF-THEN-ELSE constructs Creates a cfimage, a ColdFusion data type that can be operated by image functions.

COLDFUSION 9 CFML REFERENCE 18ColdFusion Tags

CFML tagcfimap

Category Communications tags, Internet protocol tags

Description Retrieves and manages e-mails and folders in IMAP servers

cfimport cfinclude cfindex cfinput

Application framework tags Imports JSP tag libraries into a CFML page Flow-control tags Extensibility tags Forms tags Embeds references to ColdFusion pages Creates Verity search indexes Creates an input element (radio button, check box, text entry box); used incfform

cfinsert cfinterface

Database manipulation tags Inserts records in a data source Application framework tags, Defines an interface that a ColdFusion component can implement Extensibility tags Extensibility tags Extensibility tags Display management tags Display management tags Internet protocol tags Flow-control tags Invokes component methods from a ColdFusion page or component Passes a parameter to a component method or a web service Creates a region of its container with a specific layout behavior Defines a display region within a cflayout tag body Provides access to LDAP directory servers Controls execution of a page

cfinvoke cfinvokeargument cflayout cflayoutarea cfldap cflocation cflock cflog

Application framework tags Ensures data integrity and synchronizes execution of CFML code Data output tags, Other tags Writes a message to a log file

cflogin cfloginuser cflogout cfloop cfmail

Security tags Security tags Security tags Flow-control tags Communications tags, Internet protocol tags Communications tags, Internet protocol tags Communications tags, Internet protocol tags Other tags Other tags Other tags Display management tags Display management tags

Defines a container for user login and authentication code Identifies an authenticated user to ColdFusion Logs the current user out Repeats a set of instructions based on conditions Assembles and posts an e-mail message

cfmailparam

Attaches a file or adds a header to an e-mail message

cfmailpart

Contains one part of a multipart mail message

cfmap cfmapitem cfmediaplayer cfmenu cfmenuitem cfmessagebox cfNTauthenticate cfobject

Embeds a Google map within a ColdFusion web page Creates markers on the map; a child tag of the cfmap tag Creates an in-built media player that can play FLV files Creates a top-level menu or a tool bar. Defines an entry in a menu, including an item that is the head of a submenu.

Application framework tags Defines a control for displaying pop-up messages Security tags Extensibility tags Authenticates user information against an NT domain Creates COM, component, CORBA, Java, and web service objects

COLDFUSION 9 CFML REFERENCE 19ColdFusion Tags

CFML tagcfobjectcache cfoutput cfparam cfpdf cfpdfform cfpdfformparam cfpdfparam

Category

Description

Database manipulation tags Flushes the query cache Data output tags Variable manipulation tags Forms tags Forms tags Forms tags Forms tags Displays the output of a database query or other operation Defines a parameter and its default value Manipulates existing PDF documents. Creates and manipulates PDF forms. Creates interactive fields on a PDF form. Child tag of the cfpdf tag. Used only with the merge action to merge multiple pages or PDF documents into one file Creates subforms within a PDF form. Creates a an area of the browser or layout area with an optional title bar and a body Gets and deletes messages from POP mail server

cfpdfsubform cfpod

Forms tags Display management tags

cfpop

Communications tags, Internet protocol tags Data output tags Data output tags

cfpresentation cfpresentationslide

Creates a presentation dynamically from an HTML page or SWF files Creates a slide dynamically from an HTML page or SWF source files (child tag of the cfpresentation tag) Describes a presenter in a slide presentation Prints PDF documents. Used for automated print jobs Suppresses white space and other output

cfpresenter cfprint cfprocessingdirective cfprocparam cfprocresult

Data output tags Data output tags Data output tags

Database manipulation tags Holds parameter information for stored procedure Database manipulation tags Result set name that ColdFusion tags use to access result set of a stored procedure Other tags Extensibility tags Defines a progress bar to indicate the progress of an activity Defines components

cfprogressbar cfproperty cfquery cfqueryparam cfregistry

Database manipulation tags Passes SQL statements to a database Database manipulation tags Checks data type of a query parameter Other tags, Variable manipulation tags Reads, writes, and deletes keys and values in a Windows system registry

cfreport cfreportparam cfrethrow cfreturn cfsavecontent cfschedule cfscript cfsearch cfselect

Exception handling tags Exception handling tags Exception handling tags Extensibility tags Variable manipulation tags Variable manipulation tags

Embeds a ColdFusion Report Builder or Crystal Reports report Passes an input parameter to a ColdFusion Report Builder report Rethrows currently active exception Returns results from a component method Saves generated content inside tag body in a variable Schedules page execution; optionally, produces static pages

Application framework tags Encloses a set of cfscript statements Extensibility tags Forms tags Executes searches against data indexed in Verity collections, using cfindex Creates a drop-down list box form element; used in cfform tag

COLDFUSION 9 CFML REFERENCE 20ColdFusion Tags

CFML tagcfset cfsetting

Category Variable manipulation tags Other tags, Variable manipulation tags

Description Defines a variable Defines and controls ColdFusion settings

cfsharepoint cfsilent

Extensibility tags Data output tags, Page processing tags

Invokes a SharePoint action from ColdFusion Suppresses CFML output within tag scope

cfslider cfspreadsheet cfsprydataset cfstoredproc

Forms tags Extensibility tags Internet protocol tags

Creates slider control; used in cfform Manages Excel spreadsheet files Creates a spry data set

Database manipulation tags Holds database connection information; identifies a stored procedure to execute Flow-control tags Data output tags Forms tags Evaluates passed expression; passes control to matching cfcase tag Builds a table in a ColdFusion page Puts a multiline text box in a form

cfswitch cftable cftextarea cfthread cfthrow

Application framework tags Creates and manages ColdFusion threads, i