Validation of fields within related tables
Posted:
Mon Aug 10, 2009 9:28 am
by lblanc
I am developing a Xataface application using "grid" widget extensively for capturing related table fields. One simple stuff I did not manage to implement is the field validation of related tables captured via "grid". Both the "validators:required" of fields.ini file and my validate delegate class seem to not be taken into account before saving records. Did I miss anything?
Thanks in advance for your answers
Posted:
Mon Aug 10, 2009 9:46 am
by mikep
Do those validators work if you go to the edit tab for the record? The issue might be with the way you wrote the validators or with the Grid module itself.
Mike
Posted:
Mon Aug 10, 2009 10:04 am
by lblanc
Yes these validators work in the 'edit' tab for the record.
Posted:
Mon Aug 10, 2009 10:45 am
by shannah
Thanks for the report. I have posted this as a bug in the issue tracker. Will try to get to it soon.
http://bugs.weblite.ca/view.php?id=585
In the mean time you can use the beforeSave() method to do some validation if you like - but it's not as smooth.
-Steve