I need to verify if 'incorso' field is True for the new record
created,after this check i need to set all other records in False,The
'incorso 'Field' is the equivalent for the current year in English
Il giorno mercoledì 5 settembre 2012 18:34:48 UTC+2, Anthony ha scritto:
>
> Do you want to manipulate it (a) after submission but before validation
> (use request.vars.incorso), (b) after validation but before the insert (use
> crud.settings.create_onvalidation), or (c) after the record is inserted
> (use crud.settings.create_onaccept).
>
> Anthony
>
> On Wednesday, September 5, 2012 11:09:41 AM UTC-4, tommasot wrote:
>>
>> I have the following code in the controller about record creation
>>
>> *form = crud.create(db.anno,next='list_anno')*
>>
>> This is the model,how you can see is very simple :)
>>
>> *db.define_table('anno',
>> Field('descrizione'),
>> Field('incorso','boolean'),format='%(descrizione)s')*
>>
>> Now i want to catch the 'incorso' value posted from the form and
>> manipulate the value if some condition is satisfied.
>>
>> The question is how can i intercept the value, i hope there is something
>> like form.field
>>
>>
>> Thanks
>>
>
--