This is a concept for a new builder extension I put together last night. I would like to get some thoughts on if this is something you might use and if so from a feature standpoint what you would like to see in it.
jQuery Select Example
johnny said: oh, great. I help me a lot. Thanks!!!
[More]
Multiple File Uploads in ColdFusion
Robert N. said: Hi,
I'd like to be able to upload multiple files as part of a form submission. Is this possible wi...
[More]
Coldbox datasource setting and Wirebox
Bummed Out said: Just starting out with ColdBox 3.1.0 and ready to give up because I can't access my data source sett...
[More]
CFGrid Event Listeners
steve said: I was wondering if there was an event to handle the refreshing of new data either from the initial l...
[More]
Getting the public IP address of a visitor
Ken Hughes said: Could you use the accept-language browser header? If it's en-US, treat them as in the USA, otherwise...
[More]
This is a concept for a new builder extension I put together last night. I would like to get some thoughts on if this is something you might use and if so from a feature standpoint what you would like to see in it.
#1 by Brian Meloche on 12/2/09 - 11:03 PM
On your extension, it's a nice start. I would have used it for some work I am doing if I'd like to see something that would see is if it can detect if there are any primary and foreign keys, and especially for foreign keys, generate selects (single or multiple) and radio fields, which could come back in query, array of structures or array of objects based on the relationship. The jQuery idea is also a good one, as well as any other JS framework or custom JS. I look forward to playing with it.
#2 by Brian Meloche on 12/2/09 - 11:20 PM
On your extension, it's a nice start. I would have used it for some work I am doing if it had been available. It does have potential, and I'd like to see what the templates look like. I've built some templates for LightFront that do something similar to this, as well as built controllers and services. It's not quite ready for the masses, though.
For what I would like to see going into it would be something that would detect if there are any primary and foreign keys, and especially for foreign keys, generate selects (single or multiple) and radio fields, which could come back in query, array of structures or array of objects based on the relationship and you'd generate all of that in a nice little package (I've made a snippet for that, but a snippet can't obviously read the database).
Also, I didn't see it, but I'll ask: Can you add extra
The jQuery idea is also a good one, as well as any other JS framework or custom JS. I look forward to playing with it.
Of course, the extension could be carried forward to build validation routines, inserts/updates into the database, and the controller and service CFCs. It could also tie into a form library, such as CFUniform or what have you and write out those libraries if they aren't in your application.
All in all, very promising... you could probably release that as is and get more feedback that way! Let me know when you do!
#3 by Brian Meloche on 12/2/09 - 11:23 PM
What that short paragraph was supposed to say...
I didn't see it, but I'll ask: Can you add extra form fields? It didn't appear so, but that would be my #1, even ahead of the table relationships... since that should be fairly easy to add.
#4 by Dan Vega on 12/2/09 - 11:24 PM
cfsqltype CF_SQL_INTEGER
cftype numeric
javatype 4
length 10
name id
nullallowed false
primarykey true
type int identity
#5 by Brian Swartzfager on 12/3/09 - 6:58 AM
I like what you've got so far. One of the challenges I saw in doing something like this was providing the configuration options for each form field. You've already provided a means to configure the type of form control and the text of the label, but if you add Javascript/jQuery validation to the mix, do you think you'll add the ability to add custom validation messages for each validation error condition on each form field, or just generate generic validation messages (like "This field is required" or "This field cannot be longer than 100 characters")?
Good luck with this: interested to see how it'll turn out.
#6 by John Allen on 12/3/09 - 9:14 AM
I've prototyped a little but have been thinking about how to generically do the relationship stuff. My thoughts were to take whats being built for ModelGlue.
#7 by Rick Mason on 12/3/09 - 12:01 PM
Impressive beginning, I agree you should post it so that you can get detailed feedback.
Second the idea of jquery validation. But it would be nice to go even further and support posting using cfajaxproxy complete with validation message.
#8 by Wim on 12/4/09 - 1:28 AM
#9 by Dave Burns on 4/19/11 - 10:56 AM
db