background image

COLDFUSION

®

MX 7

CFML Quick Reference

Summary of Contents for COLFUSION MX 7-CFML

Page 1: ...COLDFUSION MX7 CFML Quick Reference...

Page 2: ...own risk Macromedia provides these links only as a convenience and the inclusion of the link does not imply that Macromedia endorses or accepts any responsibility for the content on those third party...

Page 3: ...Gateway interface 32 Methods to implement 32 IM Gateway CFC incoming message methods 32 IM Gateway message sending commands 32 Application cfc 32 Methods to implement 32 ColdFusion variables 32 Varia...

Page 4: ...Y and CFSTOREDPROC variables 37 CFREGISTRY variables 37 CFSEARCH variables 37 Standard CGI variables 37 Request 37 Server 37 Client 38 CGI environment variables 38 CGI server variables 38 CGI client v...

Page 5: ...ys hours minutes seconds setDomainCookies yes or no scriptProtect none all or list cfargument cfargument name string type data type required yes or no default default value displayname descriptive nam...

Page 6: ...ame String pieSliceStyle solid sliced scaleFrom integer minimum value scaleTo integer maximum value seriesPlacement default cluster stacked percent show3D yes or no showBorder yes or no showLegend yes...

Page 7: ...me reset yes or no cfcookie cfcookie name cookie_name value text expires period secure yes or no path url domain domain cfdefaultcase cfdefaultcase cfdirectory cfdirectory action directory action dire...

Page 8: ...r levels cfelse cfif expression HTML and CFML tags cfelseif expression HTML and CFML tags cfelse HTML and CFML tags cfif cfelseif cfif expression HTML and CFML tags cfelseif expression HTML and CFML t...

Page 9: ...me nameConflict behavior accept mime_type file_type mode permission attributes file_attribute_or_list result result_name cffile action write file full_path_name output content mode permission addNewLi...

Page 10: ...vrule or spacer style style specification width pixels height pixels visible Yes or No OR cfformitem type html or text style style specification width pixels height pixels visible Yes or No enabled Y...

Page 11: ...me colHeaderFontSize size colHeaderItalic yes or no colHeaderBold yes or no colHeaderTextColor web color bgColor web color maxRows number The following attributes work in Flash format only style style...

Page 12: ...ues Comma separated strings and or numeric range valuesDisplay Comma separated strings and or numeric range valuesDelimiter delimiter character cfgridrow cfgridrow data col1 col2 cfgridupdate cfgridup...

Page 13: ...cfindex cfindex collection collection_name action action type type title title key ID body body custom1 custom_value custom2 custom_value custom3 custom_value custom4 custom_value category category_na...

Page 14: ...in the component cfinvoke method method name returnVariable variable name argumentCollection argument collection OR Syntax 3 This syntax invokes a web service cfinvoke webservice URLtoWSDL_location me...

Page 15: ...ue omit yes or no 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 attribut...

Page 16: ...Row row_num endRow row_num cfloop cfloop looping over a list or file cfloop index index_name list list_items delimiters item_delimiter cfloop cfloop looping over a COM collection or structure cfloop c...

Page 17: ...plate path name tag_name attributeCollection collection_structure attribute_name1 valuea attribute_name2 valueb cfNTauthenticate cfNTauthenticate username username password password domain nt_domain r...

Page 18: ...Path path timeout seconds maxRows number startRow number generateUniqueFilenames yes or no debug yes or no cfprocessingdirective cfprocessingdirective pageencoding page encoding literal string OR cfpr...

Page 19: ...istry action getAll cfregistry action getAll branch branch type data type name query name sort criteria cfregistry action get cfregistry action get branch branch entry value variable variable type dat...

Page 20: ...artTime 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...

Page 21: ...sh only width number of pixels Flash only Zero or more HTML option tags cfselect cfset cfset var variable_name expression cfsetting cfsetting enableCFoutputOnly yes or no showDebugOutput yes or no req...

Page 22: ...ribute value value text onKeyUp JavaScript or ActionScript onKeyDown JavaScript or ActionScript onMouseUp JavaScript or ActionScript onMouseDown JavaScript or ActionScript onChange JavaScript or Actio...

Page 23: ...roll yes or no style style specification enabled Yes or No visible Yes or No tooltip tip text onChange ActionScript notSupported text cftree cftreeitem cftreeitem value text display text parent parent...

Page 24: ...encoding CharsetEncode binaryobject encoding Hash string algorithm encoding LCase string ListToArray list delimiters ToBase64 string or binary_object encoding ToBinary string_in_Base64 or binary_value...

Page 25: ...date TimeFormat time mask Week date Year date Decision functions DirectoryExists absolute_path FileExists absolute_path IIf condition string_expression1 string_expression2 IsArray value number IsBina...

Page 26: ...ng LSParseDateTime date time string LSParseEuroCurrency currency string LSParseNumber string LSTimeFormat time mask NumberFormat number mask ParagraphFormat string RJustify string length StripCR strin...

Page 27: ...string2 Decrypt encrypted_string key algorithm encoding Encrypt string key algorithm encoding Find substring string start FindNoCase substring string start FindOneOf set string start FormatBaseN numb...

Page 28: ...entValue number Exp number Fix number FormatBaseN number radix IncrementValue number InputBaseN string radix Int number Log number Log10 number Max number1 number2 Min number1 number2 Pi Rand algorith...

Page 29: ...racters of the string Asc string BinaryDecode string binaryencoding BinaryEncode binarydata encoding CharsetDecode string encoding CharsetEncode binaryobject encoding Chr number CJustify string length...

Page 30: ...uding string set SpanIncluding string set StripCR string ToBase64 string or binary_object encoding ToBinary string_in_Base64 or binary_value ToString value encoding Trim string UCase string URLDecode...

Page 31: ...oding scope_name charset SetLocale new_locale SetProfileString iniPath section entry value WriteOutput string XML functions AddSOAPRequestHeader webservice namespace name value mustunderstand AddSOAPR...

Page 32: ...onApplicationEnd onApplicationStart onError onRequest onRequestEnd onRequestStart onSessionEnd onSessionStart ColdFusion variables ColdFusion MX returns variables such as those returned in a cfdirect...

Page 33: ...variable Session myvariable To ensure that modifications to shared data occur in the intended sequence use the cflock tag The predefined application and session variables are as follows Application Ap...

Page 34: ...les A 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 CFC...

Page 35: ...ies 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 Er...

Page 36: ...ame row queryname Path row queryname URL row queryname Length row queryname LastModified row queryname Attributes queryname IsDirectory queryname Mode CFHTTP variables A cfhttp get operation can retur...

Page 37: ...FSEARCH variables A cfsearch operation returns the following variables where searchname is the name attribute value searchname URL searchname Key searchname Title searchname Score searchname Custom1 a...

Page 38: ...e request anywhere in the page CGI variables are read only Note The environment variables available to applications depend on the browser and server software CGI server variables The server creates th...

Reviews: