validation

1 view
Skip to first unread message

GabeRoffman

unread,
Oct 10, 2008, 8:59:15 AM10/10/08
to DataFaucet ORM
Does datafaucet have any validate functions built-in?

rob_parkhill

unread,
Oct 10, 2008, 1:51:44 PM10/10/08
to DataFaucet ORM
What are you trying to validate?

I know that with the insert functions it <cfqueryparam>'s them.
Course Ike knows best. Just trying to help :)

ike

unread,
Oct 10, 2008, 3:49:04 PM10/10/08
to DataFaucet ORM
Before I created DataFaucet I was using the form tools in the onTap
framework to validate user-supplied data. So right now no, the active
record objects don't have anything built-in.

On Oct 10, 8:59 am, GabeRoffman <Gabe.Roff...@gmail.com> wrote:

Isaac Dealey

unread,
Oct 10, 2008, 4:17:17 PM10/10/08
to dataf...@googlegroups.com
> Before I created DataFaucet I was using the form tools in the onTap
> framework to validate user-supplied data. So right now no, the active
> record objects don't have anything built-in.

Speaking of which there's still database-driven form validation in the
onTap framework that uses the DataFaucet plugin. But it's not based on
the active-record objects it's just table-to-form.


--
[ ike ] founder - DataFaucet ORM

phone: 781.769.0723

http://www.datafaucet.com


Isaac Dealey

unread,
Oct 11, 2008, 4:16:19 AM10/11/08
to dataf...@googlegroups.com
> Does datafaucet have any validate functions built-in?

Did my earlier reply make it to the list?

I started adding some code for a schema exporter to handle migrating db
schema from one database to another (or upgrading a schema to a new
version) the way that DataMgr does and at the same time started working
on a simple validator for the active record objects also. It shouldn't
take long to finish, although it won't be horribly robust, it'll just be
"are these values valid for these columns?" I tend not to perform data
validation unless I'm receiving data from a user, which is why my data
validation tends to be form-centric.

GabeRoffman

unread,
Oct 13, 2008, 12:42:23 PM10/13/08
to DataFaucet ORM
That sounds good. I think the basic validation you mention is good.
After all, we may be creating business/activeRecord objects from
webservice calls where the form tools couldn't be used.

Isaac Dealey

unread,
Oct 13, 2008, 2:12:09 PM10/13/08
to dataf...@googlegroups.com
> That sounds good. I think the basic validation you mention is good.
> After all, we may be creating business/activeRecord objects from
> webservice calls where the form tools couldn't be used.

Right. Just not something I've done much of yet. :)

Reply all
Reply to author
Forward
0 new messages