I'm trying to go back and clean up some of the things I glossed over during
initial development of my first MG application. :)

Question:
How do you, on a validation error, go back to the form and populate the
fields?

I'm digging through the MG list, and some of Bob's ValidateThis examples and
am stuck.

I have my UserRecord when the form initially loads, and on validation
failure I seem to be able to pull the form values out of the event if there
is an error but it seems like I'll have to add a lot of logic to my form to:

a) check if the form was submitted
b) if there is a validation error pull from event, else pull from
UserRecord...

I'm wondering if there is a relatively simple way to do this that I'm
overlooking...

I'm using CF ORM and I imagine I have a detached object floating around
populated with this data... is there someway for me to grab that?

Thanks!
Jim

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to