|
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
Editorial ColdFusion CFC Query in Dreamweaver
An Overlooked Great New Feature
By: Simon Horwith
Oct. 21, 2005 09:30 PM
The feature I'm talking about is the new ColdFusion Component Query functionality in Dreamweaver. If you haven't already installed the CFMX 7 Dreamweaver extensions, you have to install those in order to use this new functionality. Once the extensions are installed, you're ready to use the new CFC Query functionality. Dreamweaver MX has a query builder - you access it by going to the "Application" panel, clicking on the "bindings" tab, and then clicking the plus sign button and selecting recordset. The CFMX 7 Dreamweaver extensions add an enhancement to this recordset builder. If you launch the recordset builder while a CFC is the active file in Dreamweaver, the recordset builder allows you to select a function from the current CFC and have the query code written into that function. There's also a "New Function" button there that allows you to specify a name for a new function to create. If you click this button and assign a name, then finish creating your query and submit it, the recordset builder will create a function with the name you specified. This function will default to not allowing output and to having a "query" return type. The function body will declare a private variable to hold your result set, contain the query you defined, and return that variable. This makes the recordset builder much more useful than it used to be - for the first time we can have the IDE create a query inside a method, which has been written the "right" way, rather than just writing a <CFQUERY> block at the top of our file. It's a major step in the right direction in that it encourages developers to put their queries in CFC methods rather than browsable .cfm files. The code itself also encourages proper use of component variable scoping. Macromedia deserves a round of applause for extending the existing functionality in a way that encourages best practices. The July issue went out fairly late due to the timing of the CFUnited Conference and the CF 10th birthday party in Newton - both of which I felt deserved a write-up. So, for this month's issue I played catch-up and am happy to say we're getting back on schedule - my apologies to any of you who were inconvenienced by the delay in getting the July issue into your hands. Our focus this month is on debugging and we've got many great articles focused on debugging techniques. Expect to see a few more debugging related articles that didn't make it into this issue in next month's issue of CFDJ. In addition to the debugging articles we also have some great articles on other topics in this issue including, among other things, an insightful article on programming models by Simeon Simeonov - the lead engineer on many versions of ColdFusion. Enjoy! Reader Feedback: Page 1 of 1
Your Feedback
Latest Cloud Developer Stories
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week
Breaking Cloud Computing News
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||