Thanks guys, I'll try with it..

El viernes, 22 de febrero de 2013 10:28:27 UTC-3, Jim S escribió:
>
> You have a couple different options.
>
> 1.  Custom validators (not as scary as they sound) - 
> http://web2py.com/books/default/chapter/29/07#Custom-validators
> 2.  Before and after callbacks - 
> http://web2py.com/books/default/chapter/29/06#before-and-after-callbacks
>
> That should get the job done.
>
> -Jim
>
> On Friday, February 22, 2013 7:22:06 AM UTC-6, Christian Espinoza wrote:
>>
>> Hi guys, there a way to validate some condition before run the insert of 
>> a new record using SQLForm.grid() ?
>>
>> For example if I need insert a record, but a rule ( a value at the db, a 
>> constant) said that the records must be
>> only < 5 and I have already 4 records, then the insert can't be run...
>>
>> Thanks for your time.
>> Cheers
>> Christian.
>>
>

-- 

--- 
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.


Reply via email to