> Has the variable lookup order for unscoped variables changed in 6.1? I > say this because we use a custom tag that takes in a parameter of > "query" -- this query is the result of a <cfdirectory action="list"> > call and so has the fieldname of "attributes" in it. > > As we know, variables passed in to a custom tag are passed in the > attributes scope -- the problem arises when attempting to loop through > the query in the attributes scope: > > <cfloop query="attributes.query"> > <cfoutput> > #attributes.query.name# > </cfoutput> > </cfloop> > > ^^ This fails because it looks at the "attributes" in the query before > the attributes scope (i.e. it looks for > attributes.query.attributes.query.name which obviously doesn't exist). >
You need pound signs around the attributes.query. Or you can just remove the quotes from around it. The way you have it now, it's trying to loop over a query name "attributes.query", the literal string as opposed to a reference to the query you're trying to loop over. Regards, Dave. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

