Help!

I am trying to write my first CFC, and am having quite a time with what
has to be the most basic CFC possible.

 

Every time I run the code below, I get this error:

 



Attribute validation error for tag cfoutput. 

         

The value of the attribute query, which is currently "showResults", is
invalid. 

 

 

Please help!

 

============

 

newestComp.cfc

 

<CFCOMPONENT>

            <CFFUNCTION name="returnNewest" returntype="query">

                        <CFARGUMENT name="ArgSiteName" type="numeric"
required="yes">

                        

                        <CFQUERY name="getResults"
datasource="Categories">

                                    SELECT siteName

                                    FROM links

                        WHERE LinkID = #arguments.ArgSiteName#

                        </CFQUERY>

                        

                        <CFRETURN getResults>

            </CFFUNCTION>

</CFCOMPONENT>

 

 

============

 

newestCompTest.cfm

 

<CFINVOKE component="newestComp" method="returnNewest"
returnVarible="showResults">

            <CFINVOKEARGUMENT name="ArgSiteName" value="46">

</CFINVOKE>

 

<CFOUTPUT query="showResults">

            #SiteName#<BR>

</CFOUTPUT>

 

 

 

--

My Blog -  <http://www.countersinkdg.com> www.countersinkdg.com 

 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

Host with the leader in ColdFusion hosting. 
Voted #1 ColdFusion host by CF Developers. 
Offering shared and dedicated hosting options. 
www.cfxhosting.com/default.cfm?redirect=10481

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to