On Jan 28, 2011, at 1:26 AM, Martijn Korse wrote:

It would be great if i could create a Form and then say:
validate it and then insert it into the database (or update the data),
without having to write the code over and over again.


Right, this has been the quest of user-interface developers since before you were born.

In general, you can do this only if your form and your database table are trivial. For example, no multi-value form fields, no multi-value data elements, and form fields have a one-to-one mapping to database columns with the same data types and same names, etc. This is almost never true, unless you're only developing a demo.

Form processing is complex because information is complex. There is no form processing that is as simple as you describe, while also supporting the range of options that developers need.

Regards,
Bill Karwin

Reply via email to