Hey John, There are many ways to do some form of testing, and this one is the most basic of them all. Glad you figured it out.
-----Original Message----- From: John Barrett [mailto:[email protected]] Sent: Monday, 14 December 2009 8:54 PM To: cf-newbie Subject: Re: testing cfc with cfdump? I mean from the cfc. I have: <!--- cfc---> <cfcomponent> <cffunction name="getArtists" access="remote" returntype="query"> <cfset var qRead = "" /> <cfquery datasource="cfartgallery" name="qRead"> SELECT artistid, firstname, lastname, email FROM artists </cfquery> <cfreturn qRead /> </cffunction> </cfcomponent> <!-- test---> <cfinvoke component="ArtistGateway" method="getArtists" returnVariable="qRead"> <!--- dump the output---> <cfdump var = "#qRead#"> yep works fine and is easy, I was just wondering is there a function in a cfc to test directly without have a test.cfm page? thanks, Johnny ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4922 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
