A few notes, interspersed. On Fri, Feb 24, 2012 at 4:06 PM, John Barrett <[email protected]> wrote: > > Hi, > I am trying to experiment with the new style for cfcs using the script > instead of the tag. Can anybody tell me of any resources for learning? I > notice there is a difference when I tried to use on in the Appilication.cfc. > I found a resource for this, and everything has this.something.
So wait - are you asking about script based CFCs or Application.cfc? It's two different topics. Obviously you can use script-based CFCs for Application.cfc, but the context of how I answer depends on it. ;) > Another question is how to you access this.datasource ="my_dsn" in a > cfquery, I tried to use "datasource", but that did not work. You don't. That's the point. ;) When you do this.datasource="x" in Application, you are setting a default. Your queries don't need to use datasource="x" anymore. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5796 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
