Search the web
Sign In
New User? Sign Up
cold_fusion · This list is for any Web developer interested in either learning Cold Fusion or honing their existing CF skills. If the demand
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Beyond columnList   Message List  
Reply | Forward Message #4417 of 9380 |
As part of my learning process with CF, I've managed to write myself
a page that will output the contents of any table, once I've fed it
the table name. (Yes, columnList featured heavily).

Now I'd like to go one further, and have a page that will let me
update records, delete records, and maybe even add new records, to
any generic table. No, it probably won't be pretty, but it'll be a
useful tool. I've figured out how to do the coding in a single page
for a non-generic table, with assorted forms in the output and some
cfupdates and so on at the top of the page, I "just" need to make it
generic.

But, to make this half-way usable, I really need to be able to pick
up the datatype of each column, not just the name. As far as I can
see, columnList and related variables don't do this.

Any ideas? Is there a datatype(variable) sort of function hiding
somewhere?

(At present this is on Access, BTW. But since this is meant to be
a "learn CF" process, I'd like a DB-independent solution if possible).

I suppose for a practical solution (though one that would only work
on my own DBs) I could impose a naming convention on myself, so the
name of the column includes its data-type. But that looks too much
like admitting defeat :(






Tue Jan 21, 2003 4:40 pm

janewilliams20
Offline Offline
Send Email Send Email

Forward
Message #4417 of 9380 |
Expand Messages Author Sort by Date

As part of my learning process with CF, I've managed to write myself a page that will output the contents of any table, once I've fed it the table name. (Yes,...
Jane Williams <janewi...
janewilliams20
Offline Send Email
Jan 21, 2003
4:40 pm

All this has been done before. Go to the Dev Exchange and download it for free, sorry its been a while so I don't have a link. However why waste your time...
Fred T. Sanders
sandersfred
Offline Send Email
Jan 21, 2003
4:48 pm

I agree you can get this from the dev exchange, but if he is doing it to learn, I don't think it is a poor use of resources. Just my opinion. ... From: Fred T....
Christopher McGrath
reardenweb
Offline Send Email
Jan 21, 2003
4:51 pm

... Like I said, that's precisely why I'm doing it. (Well, that's the main reason: it's also a potentialy useful tool to have around, of course). (And, like...
Jane Williams
janewilliams20
Offline Send Email
Jan 21, 2003
4:59 pm

My apologies for the he, it was a typo. ... From: Jane Williams [mailto:janewilliams20@...] Sent: Tuesday, January 21, 2003 12:00 PM To:...
Christopher McGrath
reardenweb
Offline Send Email
Jan 21, 2003
5:01 pm

... Phew! for one horrible moment I thought I'd need an operation to get my code working :) Now that *would* be poor use of resources! ...
Jane Williams
janewilliams20
Offline Send Email
Jan 21, 2003
5:06 pm

LOL, glad we all still have our humor. Your right Chris you can learn by doing it yourself from scratch or you could learn by seeing how someone else did it....
Fred T. Sanders
sandersfred
Offline Send Email
Jan 21, 2003
5:13 pm

... I now know it's possible, which is, as you say, a major step forwards. ... I'm doing a down-load from the dev exchange now: but the license says inter alia...
Jane Williams
janewilliams20
Offline Send Email
Jan 21, 2003
5:33 pm

If you can't find it I might still have a copy, I've noticed a lot of things that used to be in the exchange that are several years old have mysteriously ...
Fred T. Sanders
sandersfred
Offline Send Email
Jan 21, 2003
5:21 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help