20
CFML Quick Reference
Syntax 2
<!--- Syntax 2 - Use this syntax with Crystal Reports. --->
<cfreport
report = "report_path"
dataSource = "ds_name"
type = "type"
timeout = "number of seconds"
orderBy = "result_order"
username = "username"
password = "password"
formula = "formula">
</cfreport>
cfreportparam
<cfreportparam
name = "data name"
value = "data value">
cfrethrow
<cfrethrow>
cfreturn
<cfreturn
expr>
cfsavecontent
<cfsavecontent
variable = "variable name">
the content
</cfsavecontent>
cfschedule
<cfschedule
action = "update"
task = "taskname"
operation = "HTTPRequest"
file = "filename"
path = "path_to_file"
startDate = "date"
startTime = "time"
url = "URL"
port = "port_number"
publish = "yes" or "no"
endDate = "date"
endTime = "time"
interval = "seconds"
requestTimeOut = "seconds"
username = "username"
password = "password"
proxyServer = "hostname"
proxyPort = "port_number">
proxyUser = "username"
proxyPassword = "password"
resolveURL = "yes" or "no"
<cfschedule
action = "delete"
task = "TaskName">
<cfschedule
action = "run"
task = "TaskName">
cfscript
<cfscript>
cfscript code here
</cfscript>
cfsearch
<cfsearch
name = "search_name"
collection = "collection_name"
category = "category[,category2,...]"
categoryTree = "tree_location"
status = ""
type = "criteria"
criteria = "search_expression"
maxRows = "number"
startRow = "row_number"
suggestions = "suggestion_option"
contextPassages = "number_of_passages"
contextBytes = "number_of_bytes"
contextHighlightBegin = "html_string"
contextHighlightEnd = "html_string"