Prior to upgrading to 6.1 - I've been using the following Function without any issues...
<cffunction name="convertArrayOfIDsToList" access="public" returntype="any" hint="Blah blah blah">
<cfargument name="queryName" type="string" required="true"> <cfargument name="columnName" type="string" required="true">
<cfset variables.ArrayIDs = ArrayNew(1)>
<cfloop query = "#arguments.queryName#">
<cfset variables.ArrayTemp = ArrayAppend(variables.ArrayIDs, "#Evaluate(arguments.columnName)#")>
</cfloop>
<cfset variables.ListIDs = ArrayToList(variables.ArrayIDs, ",")>
<cfreturn variables.ListIDs>
</cffunction>
Invoking it as such...
<cfinvoke method="convertArrayOfIDsToList" component="#Application.Path#/components/utilities" returnvariable="variables.myListOfIDs">
<cfinvokeargument name="queryName" value="variables.myQueryName"> <cfinvokeargument name="columnName" value="myColumnName">
</cfinvoke>
However, after upgrading to 6.1 I get the following error:
Attribute validation error for tag cfloop. The value of the attribute query, which is currently "variables.myQueryName", is invalid.
It's referring to the place where I dynamically output the name of the query into the <cfloop> within my Function...
Pardon my ignorance here, but does anybody know what I'm missing, or misunderstanding, and what is it about 6.1 that makes this no longer work?
Thanks.
D
_________________________________________________________________
Fast, faster, fastest: Upgrade to Cable or DSL today! https://broadband.msn.com
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
