I wasn't sure how to obtaien the value of the Row Id which was being
modified!
Thanks for your answer
El lunes, 20 de marzo de 2017, 13:27:07 (UTC-3), Anthony escribió:
>
>
> def is_bigger(form):
>> idUpdate = request.args(3).first
>>
>
> What is .first supposed to do?
>
>
>> r =
> def is_bigger(form):
> idUpdate = request.args(3).first
>
What is .first supposed to do?
> r = db(db.t_myTable.f_quantity==idUpdate.id).select()
>
The above returns a Rows object -- you need to extract the Row from it --
so, use .select().first().
Anthony
--
Resources:
-
I have made a workarround.
if (request.args[1] == 'edit'):
#obtenemos el id del campo a modificar
idUpdate = request.args[3]
El lunes, 20 de marzo de 2017, 10:40:23 (UTC-3), Santiago Cartasegna
escribió:
>
> Hello,
>
> I am trying to do some validation before updating a record.
3 matches
Mail list logo