Sorry folks. Sometimes the answer is a little overly obvious. Change <cfreturn this> to <cfreturn [queryname]>
Cutter Cutter (CF_Talk) wrote: >This may be a part of my issue. The struct being returned is basically >like this: > >objTitles > intDocID > strName > strFileName > dtDateAdded > >I tried changing the CFC function return type to a query and accessing >the data as you usually would access query data, but when I refreshed >the page it said no query existed. Would I need my sysad team to reboot >the server for it to recompile the CFC? > >Cutter > > >Chris Alvarado wrote: > > > >>If it is just a structure with 1 'iteration' >> >>You can treat the keys like a list. >> >><cfloop list="#structKeyList(structure)#" index="x"> >>#x# (would be the keyName) >>#evaluate(x)# would be the value of the key >></cfloop> >> >>-chris.alvarado >>[ application developer ] >>4 Guys Interactive, Inc. >>http://www.4guys.com >> >>"We create websites that make you a hero." >> >> >>-----Original Message----- >>From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday, December 31, 2002 2:42 PM >>To: CF-Talk >>Subject: CFC Question >> >> >>I know that this has been asked, but I can't find it in the archives >> >>I have created a CFC with a function getTitle. The function has a return >> >>type of struct. After calling the function through CFInvoke, how do I >>loop through the struct to display my data? There doesn't appear to be a >> >>lot of information on this at MM... >> >>Cutter >> >> >> >> >> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

