We use the application.cfm to set certain variables like the datasource. I am migrating some of our older code to use CF components. For some reason, I am running into a issue where the component cannot see the variable.
I am calling it like this... <cfinvoke component="functions" method="cancelOrder"> <cfinvokeargument name="primarydatasource" value="#primarydatasource#"> </cfinvoke> but the function doesn't know what #primarydatasource# is. Even when I try and to include a cfargument in the function, it still won't find it. <cfcomponent> <cffunction name="cancelOrder"> <cfargument name="primarydatasource" default = "#primarydatasource#"> The only way I can get it to work is to use this line instead of the one above. <cfargument name="primarydatasource" default = "#application.primarydatasource#"> What am I doing wrong? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271712 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4