Quick Reference to CFML
5
CFIMPERSONATE
<CFIMPERSONATE
SECURITYCONTEXT="SecurityContext"
USERNAME="Name"
PASSWORD="Password"
TYPE= "CF" or "OS">
...
HTML or CFML code to execute
...
</CFIMPERSONATE>
CFINCLUDE
<CFINCLUDE TEMPLATE="template_name">
CFINDEX
<CFINDEX COLLECTION="collection_name"
ACTION="action"
TYPE="type"
TITLE="title"
KEY="ID"
BODY="body"
CUSTOM1="custom_value"
CUSTOM2="custom_value"
URLPATH="URL"
EXTENSIONS="file_extensions"
QUERY="query_name"
RECURSE="Yes" or "No"
EXTERNAL="Yes" or "No"
LANGUAGE="language">
CFINPUT
<CFINPUT TYPE="input_type"
NAME="name"
VALUE="initial_value"
REQUIRED="Yes" or "No"
RANGE="min_value, max_value"
VALIDATE="data_type"
ONVALIDATE="javascript_function"
MESSAGE="validation_msg"
ONERROR="text"
SIZE="integer"
MAXLENGTH="integer"
CHECKED="Yes" or "No"
PASSTHROUGH="HTML_attributes">
CFINSERT
<CFINSERT DATASOURCE="ds_name"
DBTYPE="type"
DBSERVER="dbms"
DBNAME="database name"
TABLENAME="tbl_name"
TABLEOWNER="owner"
TABLEQUALIFIER="tbl_qualifier"
USERNAME="username"
PASSWORD="password"
PROVIDER="COMProvider"
PROVIDERDSN="datasource"
FORMFIELDS="formfield1, formfield2, ...">
CFLDAP
<CFLDAP SERVER="server_name"
PORT="port_number"
USERNAME="name"
PASSWORD="password"
ACTION="action"
NAME="name"
TIMEOUT="seconds"
MAXROWS="number"
START="distinguished_name"
SCOPE="scope"
ATTRIBUTES="attribute, attribute"
FILTER="filter"
FILTERFILE="<file_name>,<stanza_name>"
SORT="attribute[, attribute]..."
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">
Summary of Contents for COLDFUSION 4.5- TO CFML
Page 33: ...30 Quick Reference to CFML...