Have you tried `form.vars.id`? — Vinicius.
> On 10 Sep 2015, at 11:15, [email protected] wrote: > > Hi All, > > In my controller there is a grid: > > grid = SQLFORM.grid(newstable, > create=True, > editable=False, > deletable=False, > details=False, > csv=False, > paginate=20, > showbuttontext=True, > maxtextlength=43, > links=links, > orderby=newstable.ordine, > sortable=True, > searchable=True, > oncreate=redirect_gestione_notizie, # redirect > functions > onupdate=redirect_gestione_notizie, # redirect > functions > # ondelete=redirect(referrer, client_side=True, *v, > **a) > user_signature=False, > ) > ..... > > and also the function: > > def redirect_gestione_notizie(form): > redirect(URL('gestione', 'notizie_edit', vars=### how I get the record > id?#### )) > > > After the record creation I would like to redirect to a "my edit record page" > but I don't know the record id. > How is possible to discover the record "id" before the redirection? > > Greetings > > Fabrizio > > > -- > Resources: > - http://web2py.com <http://web2py.com/> > - http://web2py.com/book <http://web2py.com/book> (Documentation) > - http://github.com/web2py/web2py <http://github.com/web2py/web2py> (Source > code) > - https://code.google.com/p/web2py/issues/list > <https://code.google.com/p/web2py/issues/list> (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

