"Table View" Extension for ColdFusion Builder

This post is more than 2 years old.

It has been a long time since I wrote a ColdFusion Builder extension, but as I'm using it more and more (with the new 3.0 release), I came across a need to write one today. One of the older features that I've used quite a bit is the table view in the RDS panel. This lets you select a table, right click, and dump the data into a new tab. Sure I can do this with other tools, but having it in my IDE is nice.

Unfortunately, this feature has been plagued by a bug (now four years old) that prevents it from working sometimes. Screw that. CFB's extension API lets you integrate with the RDS tables. I wrote an extension that simply lets you right click on a table and select dump:

It then fires up a view with a simple dump of the top 200 rows.

And that's it. I'm considering making it more intelligent so that you can right click on a particular field and it shows just that field. That will take about five minutes but I'm not in the mood to do it right now. ;)

The extension is attached to this blog entry. Enjoy.

P.S. I fixed it so you can select a field and see just that one.

Download attached file.

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by Larde pierre posted on 4/26/2014 at 9:22 PM

Right, Don’t want to polemic (about editors),
But as I still using the OLD Homesite,
I can view all of these in my RDS, and that’s great.(db, tables, structures, data, run a query)
Sometimes, old tools are simpler and full of basic great features.

Comment 2 by Raymond Camden posted on 4/26/2014 at 10:32 PM

As good as HomeSite was, I just can't see how you would use an editor not updated in what - 10 years? Heck - no language support for recent CF versions, or even HTML/JS?

Comment 3 by Dan Fredericks posted on 4/28/2014 at 5:28 PM

Got the answer from Ray on twitter, need to make sure I use the @raymondcamden twitter account, but wanted to post my question here to help others out.
So this seems like a cool extension so wanted to know will this work for Bulider 2.1? I figured it would, but since i have not looked into what might have been updated for builder 3, not sure if any of the extension parts of builder may have been updated and only work for 3.0.
Ray says it is backwards compatible to 2.1...hope this helps others. Now off to try it, thanks Ray.

Comment 4 by Roland Collins posted on 5/1/2014 at 2:11 AM

In fact, I think that is actually my bug, Ray! Good to know Adobe's CF dev team is still committed to quality and listening to its users (/sarcasm). Seriously what a joke. At least hide the menu item if it's broken - it doesn't take that much effort.

Comment 5 by Stephen Walker posted on 5/1/2014 at 4:23 PM

Very useful extension. Thank you. Any plans to modify this to allow the user to enter the number of records to return?

Comment 6 by Raymond Camden posted on 5/1/2014 at 4:29 PM

I considered it. But it seems (imo!) that the primary use for this is to get a "feel" for the data, not for searching or seeing *all* the data. I'm willing to be convinced otherwise though.

Comment 7 by Stephen Walker posted on 5/1/2014 at 6:55 PM

I agree. I have some large data sets and sometimes 200 is too much. I actually wanted a way to go to 1-200 (current) and not to use it to dump all records or search records. I will manually change it to 10 or 20. Thank you again.

Comment 8 by Raymond Camden posted on 5/1/2014 at 7:01 PM

Side question: I also used the broken RDS thing to do some ad hoq queries at times. You can do that now if you right click in a cfquery block - this fires up a new SQL view that works fine - but I don't always *have* a cfquery block. Also - I don't see myself doing much cfquery blocks now that writing queries in cfscript is so much easier. I may add a new option to let you write your own sql. Useful?

Comment 9 by Stephen Walker posted on 5/2/2014 at 3:00 PM

First, thank you for the tip on right clicking on the query block. Personally, I plan to move towards script version as well and would find this feature very useful.

Comment 10 by Raymond Camden posted on 5/2/2014 at 3:22 PM

I just tested. If you right click in queryExecute and launch the sql editor, it does NOT pick up the current SQL.