Annet
unread,Jun 18, 2012, 2:20:23 AM6/18/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web...@googlegroups.com
In a function I need the id of the last record created in a previous session. I tried:
maxID=db(db.Node).select(db.Node.id.max()).first().id
... but that results in a key error on id.
In a view, this {{=maxID}}, is being rendered as:
<Row {'_extra': <Row {'MAX(Node.id)': 2035}>}>
How do I get maxID=2035
Kind regards,
Annet