Your init method is not returning anything back. When you say this

<cfset finObj =
createObject("component","queries.QRY_financial").init(myDsn)>

You are saying return to me what the init method returns. Usually this is an
instance of the component such as


       <cffunction name="init" access="public" output="false"
returntype="Financial">
              <cfargument name="dsn" type="string" required="true">
              <cfscript>
                     setDsn(arguments.dsn);
              </cfscript>
              <cfreturn this>
       </cffunction>

Also I would look into some naming conventions and uses for cfcs. A cfc is
not really meant to be used as a query collection but more as a represention
of real world objects. If you are new to cfc's this is completely
understandable but other than that looks great. Change the return and that
finObj should now have access to your methods.

Dan Vega
http://www.danvega.org


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265790
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to