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/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.

Reply via email to