[quote=272400:@Alan Sawyer]What I was referring to was in this video at 40:31 into this video
If I have 50 fields in my form, I think that means I have to have 50 lines of code to save it. I was trying to see if there was a reasonable way to get the data saved.[/quote]
Hi Alan,
We have a class called Xanadu that we’re actively updating for Web Projects. It’s not quite ready for release, but check out the earlier version called EasyData.
The idea is that you initialize Xanadu to let it know about the table name, primary key, and a few other things. To load the fields, Xanadu uses introspection to find all the controls have matching fields in the table and updates controls values. We name each control using a pattern like “db_Contacts_NameFirst”. The ‘db’ is just a prefix to indicate that it’s a database control. “Contacts” is the table name and “NameFirst” is the field name. Since there are many controls types, Xanadu must be told how to deal with each control type and already knows about WebTextField, WebTextArea, WebCheckbox, WebPopupMenu, WebRadioGroup, and WebSlider. It’s super easy to add your any other control too.
Xanadu along with a Contact Manager example file will be open source. We’re speaking at XDC about Xanadu, so it’ll be released by then.
My real dream is to see an updated version of Xojo’s DataControl: http://documentation.xojo.com/index.php/DataControl