coldfusion 8 で cf autosuggest を使用しようとしています。
<cfinput name="tad"
autosuggest="(cfc.mywriters(getWriters.authors({cfautosuggestvalue})">
私のCFCは
<cffunction name="getWriters" access="public" returntype="any">
<cfargument name="writers" required="yes"/>
<cfset myArray = ArrayNew(1)>
<cftry>
<cfquery name="getWriters" datasource="mydb">
SELECT authors
FROM rp_authors
ORDER BY authors asc
</cfquery>
<cfcatch>
<cfdump var="#cfcatch#">
</cfcatch>
</cftry>
<cfloop name="getWriters">
<cfset arrayAppend(myArray,authors)>
</cfloop>
<cfreturn myArray>
</cffunction>