Hi.
The id of inserted records will be in form.vars.id, assuming you call the
form, form.
Like:
if form.accepts(request.vars, session):
id = form.vars.id
regards
mmlado
On Thursday 06 August 2009 10:43:26 max wrote:
> i am inserting Form values into a postgres database.
> For on-the fly parsing of other data, i need the entry id of the
> database, which was inserted by my form.
> I am getting this values by calculating field values and it is so
> ugly.
> Is there any web2py way of just getting the entry id of the currently
> added form entry?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---