Comments
Richard Davies wrote: The UK has a good crop of technology pioneers in cloud computing - for example ElasticHosts, FlexiScale, Flexiant, OnApp - and also some strong government initiatives such as G-Cloud. We will have to see whether this kind of technical leadership converts into swift mass-market adoption or not.
Cloud Expo on Google News


2008 West
DIAMOND SPONSOR:
Data Direct
SOA, WOA and Cloud Computing: The New Frontier for Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
GOLD SPONSORS:
Appsense
User Environment Management – The Third Layer of the Desktop
Cordys
Cloud Computing for Business Agility
EMC
CMIS: A Multi-Vendor Proposal for a Service-Based Content Management Interoperability Standard
Freedom OSS
Practical SOA” Max Yankelevich
Intel
Architecting an Enterprise Service Router (ESR) – A Cost-Effective Way to Scale SOA Across the Enterprise
Sensedia
Return on Assests: Bringing Visibility to your SOA Strategy
Symantec
Managing Hybrid Endpoint Environments
VMWare
Game-Changing Technology for Enterprise Clouds and Applications
Click For 2008 West
Event Webcasts

2008 West
PLATINUM SPONSORS:
Appcelerator
Get ‘Rich’ Quick: Rapid Prototyping for RIA with ZERO Server Code
Keynote Systems
Designing for and Managing Performance in the New Frontier of Rich Internet Applications
GOLD SPONSORS:
ICEsoft
How Can AJAX Improve Homeland Security?
Isomorphic
Beyond Widgets: What a RIA Platform Should Offer
Oracle
REAs: Rich Enterprise Applications
Click For 2008 Event Webcasts
SYS-CON.TV
Top Links You Must Click On


ColdFusion CFC Query in Dreamweaver
An Overlooked Great New Feature

Simon Horwith (pictured), editor-in-chief of ColdFusion Developer's Journal, writes: As a developer I tend to focus my attention on learning the tools that best meet my immediate project needs. As a Macromedia Certified Instructor I am in the position of having to learn all of the new features and tools, even those that I may not personally use very often in development, in order to teach them to my students. My role as a developer is unique in that I spend the majority of my time dealing with application architecture and business objects, whereas the average developer focuses more on the presentation tier on a day-to-day basis. It's very important that I am able to teach Flash forms, PDF and FlashPaper generation, the report builder IDE, and new Dreamweaver features to name a few to people who really need and rely on them to get the job done when they leave the classroom and go back to the office.

I've spent a lot of time recently focusing on these new features, and have been pleasantly surprised to find that I really enjoy many of them much more than I thought I would. In this month's editorial I thought I'd share my insights regarding a new tool that seems to have received little attention even though it's terribly useful and reflects Macromedia's efforts to step in the right direction. It only takes 5 minutes for a developer to explore and learn how to use, so there's no excuse not to be aware of this little gem.

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!

About Simon Horwith
Simon Horwith is the CIO at AboutWeb, LLC, a Washington, DC based company specializing in staff augmentation, consulting, and training. Simon is a Macromedia Certified Master Instructor and is a member of Team Macromedia. He has been using ColdFusion since version 1.5 and specializes in ColdFusion application architecture, including architecting applications that integrate with Java, Flash, Flex, and a myriad of other technologies. In addition to presenting at CFUGs and conferences around the world, he has also been a contributing author of several books and technical papers.

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

ColdFusion CFC Query in Dreamweaver. As a developer I tend to focus my attention on learning the tools that best meet my immediate project needs. As a Macromedia Certified Instructor I am in the position of having to learn all of the new features and tools, even those that I may not personally use very often in development, in order to teach them to my students. My role as a developer is unique in that I spend the majority of my time dealing with application architecture and business objects, whereas the average developer focuses more on the presentation tier on a day-to-day basis. It's very important that I am able to teach Flash forms, PDF and FlashPaper generation, the report builder IDE, and new Dreamweaver features to name a few to people who really need and rely on them to get the job done when they leave the classroom and go back to the office.

Good article, I wonder why the generated code does not use CFQueryParam or offer the choice of which format to output.


Your Feedback
CFDJ News Desk wrote: ColdFusion CFC Query in Dreamweaver. As a developer I tend to focus my attention on learning the tools that best meet my immediate project needs. As a Macromedia Certified Instructor I am in the position of having to learn all of the new features and tools, even those that I may not personally use very often in development, in order to teach them to my students. My role as a developer is unique in that I spend the majority of my time dealing with application architecture and business objects, whereas the average developer focuses more on the presentation tier on a day-to-day basis. It's very important that I am able to teach Flash forms, PDF and FlashPaper generation, the report builder IDE, and new Dreamweaver features to name a few to people who really need and rely on them to get the job done when they leave the classroom and go back to the office.
BReese wrote: Good article, I wonder why the generated code does not use CFQueryParam or offer the choice of which format to output.
Enterprise Open Source Magazine Latest Stories . . .
Apache Deltacloud, the Red Hat-contributed ReSTful API that abstracts differences between clouds so services on any cloud can be managed – provided of course there’s a driver – has graduated from the Apache Foundation’s incubator and is now a full-fledged Top-Level Project (TLP). The...
With Cloud Expo 2012 New York (10th Cloud Expo) just four months away, what better time to start introducing you in greater detail to the distinguished individuals in our incredible Speaker Faculty for the technical and strategy sessions at the conference... We have technical and st...
AMD said late Tuesday that its chief sales officer Emilio Ghilardi had left the company and that CEO and president Rory Read is going to do his job while a replacement is sought. AMD didn’t say why Ghilardi left but it’s assumed Read wants his own people. Read is relatively new to th...
During the lifespan of M3 (Monitis Monitor Manager) there has always been something lacking – timers. M3 execution procedure was outlined in this previous article. The execution mentioned in the latter was a one-time-execution, whereas server monitoring requires periodic invocati...
Red Hat is putting its bought-in Gluster scale-out NAS storage technology, acquired in October, on the Amazon cloud. It’s styled Red Hat Virtual Storage Appliance for Amazon Web Services and other clouds are supposed to follow in short order.
A new episode of the screencast series is now available at the OpenNebula YouTube Channel. This screencast demonstrates the new easily-customizable self-service portal for cloud consumers. Its aim is to offer a simplified access to shared infrastructure for non-IT end users. The scree...
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON Featured Whitepapers
ADS BY GOOGLE