Could this be used in a bind?
a normal bind would look like this for a grid
bind="cfc:data.getContacts({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})"
><cffunction name="init" returntype="any">
> <cfargument name="dsn">
> <cfset variables.dsn = arguments.dsn>
> <cfreturn this> <!--- returns instance of the component --->
></cffunction>
>You can then get an instance of your object that holds your dsn info using
>cfinvoke like so:
>
><cfinvoke component="mycomponent" method="init" dsn="#application.dsn#"
>returnVariable="myComponentInstance">
>
>Then, when you want to call the methods you want you simply do this (instead
>of cfinvoke):
>
><cfset meal = myComponentInstance.getMeal( )>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291303
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4