you can't use a comma-delimited list in a BIND attribute of
an
autosuggest element (and of most other new cf tags that
support BIND
param) - you need to change the list delimiters to something
else, like
| (pipe), using the listchangedelims() cf function.
then in your cfc function you will specify that new delimiter
in any
tag/function you use to process the passed list, or you can
change the
delimiter back to , (comma)...
if, say, your #filters# var value is "one, two, three", then
the
autosuggest attribute in your <cfinput> tag should look
like:
autosuggest="cfc:term.lookupArt({cfautosuggestvalue},
'#listchangedelims(filters, "|", ",")#')"
and your query in the cfc function will look like:
WHERE term LIKE <cfqueryparam cfsqltype="cf_sql_varchar"
value="#ARGUMENTS.search#%">
<cfif listlen(arguments.filters)>
AND distribution IN (<cfqueryparam list="yes"
separator="|"
value="#ARGUMENTS.filters#">)
</cfif>
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/