Nothing prevents from putting that code in the view. The problem is
that the code contains an error. My guess is that you want
{{db(db.projekte.id==projekte.id).update(closed=True)}}
or
{{projekte.update_record(closed=True)}}
or
{{db.projekte[projekte.id]=dict(closed=True)}}
(I am summing that projekte is both the name of the record you are
looping over and the name of the table).
Massimo
On Jun 22, 12:05 pm, pk <[email protected]> wrote:
> hi together,
> i need help
>
> how can i update in the view a table entry, in my case the row called
> 'closed' (boolean)
>
> in the view i know the project id and i like to set closed True in the
> view
> but my code gives me a ticket.
>
> {{db(projekte.id).update(closed=True)}}
>
> how can i solve this problem?
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---