On Tuesday, March 26, 2019 at 11:03:19 AM UTC-4, João Matos wrote: > > Spoke too soon. Doesn't work. > had to revert to my previous solution (save grid.rows to session ....). >
Saving the entire grid.rows object to the session is unnecessary, as you only need the "modified_on" value of the particular record being edited (which you can get from grid.update_form.record.modified_on when the edit form is first created). It also makes more sense to save the value of modified_on when the edit form is created (as that represents the version the user ends up modifying in the form) rather than the earlier version shown in the grid. You can store the modified_on value either in the session or in a hidden field in the form. Anthony > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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/d/optout.