form.vars.id
-Thadeus




On Sun, Jan 24, 2010 at 2:55 AM, pistacchio <[email protected]> wrote:
> Hi,
> once a record has been inserted with form.accepts, how to know the id
> of that record? Sure, one can performa a select and get the max id,
> and in most cases this would work, but it's not safe as it *could*
> happen that another record is inserted in between the time of the
> insert and the time of the select.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" 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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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.

Reply via email to