MACROMEDIA COLDFUSION MX 61-CFML Reference page 148

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

access="remote"
returnType="query"
hint="This query returns all records in the employee database. It can
drill-down or narrow the search, based on optional input parameters.">
For information on using the
"Building and Using ColdFusion Components,"
If you specify a
roles
one of the specified roles.
If you specify
variableName
is in ColdFusion variable name format; that is, the function must return a string that starts with a
letter, underscore, or Unicode currency symbol, and consist of letters, numbers, and underscores
(_), periods, and Unicode currency symbols, only. ColdFusion does not check whether the value
corresponds to an existing ColdFusion variable.
Example
<cfcomponent>
<cffunction name="getEmp">
<cfquery
name="empQuery" datasource="ExampleApps" >
SELECT FIRSTNAME, LASTNAME, EMAIL
FROM tblEmployees
</cfquery>
<cfreturn empQuery>
</cffunction>
<cffunction name="getDept">
<cfquery
name="deptQuery" datasource="ExampleApps" >
SELECT *
FROM tblDepartments
</cfquery>
<cfreturn deptQuery>
</cffunction>
</cfcomponent>
148
Chapter 2: ColdFusion Tags
tag for ColdFusion components, see
cffunction
attribute, the function executes only if a user is logged in and belongs to
for the
returnType
in Developing ColdFusion MX Applications.
attribute, the function must return a string that
Chapter 11,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents