Validation of fields within related tables

A place for users and developers of the Xataface to discuss and receive support.

Validation of fields within related tables

Postby lblanc » Mon Aug 10, 2009 9:28 am

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
lblanc
 
Posts: 9
Joined: Mon Dec 08, 2008 7:07 am

Postby mikep » Mon Aug 10, 2009 9:46 am

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
mikep
 
Posts: 44
Joined: Fri Apr 24, 2009 2:21 pm

Postby lblanc » Mon Aug 10, 2009 10:04 am

Yes these validators work in the 'edit' tab for the record.
lblanc
 
Posts: 9
Joined: Mon Dec 08, 2008 7:07 am

Postby shannah » Mon Aug 10, 2009 10:45 am

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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby lblanc » Tue Aug 11, 2009 12:49 am

Thanks a lot Steve
lblanc
 
Posts: 9
Joined: Mon Dec 08, 2008 7:07 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 22 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved