Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 32

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
The CFML Programming Language
For
, following are available getters on the returned component:
cfftp
getPrefix()
Returns the tag prefix
cfftp
getResult()
Applicable only to
action="listDir
For
, following are the available getters on the returned component:
cfhttp
getPrefix()
Returns the
prefix (struct) available after the tag has executed
cfhttp
getResult()
Applicable only if attributes like
specified, which direct ColdFusion to return a query object.
Query service example
<cfscript>
qryObj = new createObject("component","com.adobe.coldfuison.query").init();
<!---r here is no longer the query recordset but a component --->
r = qryObj.execute(sql="select * from art",
datasource="cfdocexamples",result="myresult",name="myquery");
<!---new way to access the data --->
resultset =r.getResult();
prefixData = r.getPrefix();
writedump(resultset);
writedump(prefixData);
<!---Using QoQ--->
qryObj.setAttributes(myquery=resultset);
r = qryObj.execute(sql="select * from myquery", dbtype="query");
writedump(r.getResult());
writedump(r.getPrefix());
</cfscript>
The following are the available getters on the returned component:
getPrefix()
Returns the result struct available after the query has executed.
getResult()
Returns the resultset returned by query (
queries (like
,
INSERT
UPDATE
PDF example
Whenever any action is performed for which a name attribute is specified, the new pdf is returned back to the user.
The following code shows typical actions on a PDF.
, which is a struct, available after any
"
,
,
columns
delimiter
firstrowasheaders
query) and throws an error for other types of SQL statements or
SELECT
,
).
DELETE
Last updated 1/20/2012
operation
cfftp
,
, or
name
textQualifier
27
are

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents