either with onvalidate or with a computed field .... read it on the book ^_^ http://web2py.com/books/default/chapter/29/06#Computed-fields
On Monday, April 15, 2013 8:34:48 PM UTC+2, Michael Herman wrote: > > I'm slightly confused on how to make a calculation and then update a SQL > field after a form is validated. > > What I'm trying to do is this: > http://www.screencast.com/users/Mike_Extentech/folders/Jing/media/70a2511b-f978-458b-8d4c-9a635b191a33 > > Essentially, the end_date field is dependent on the data inputed into the > other two fields, start_date and length. So once the form is validated, a > calculation is triggered then the data is inserted into the database for > the end_date field. > > Does that make sense? > > I'm also using the SQLFORM.grid default view for adding records. > > > Thanks! > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.