SQLFORM.grid does not actually add the records automatically. It just
calls the grid controller with args action/table.

You have to do something like:
    if request.args(0) in ("edit", "new"):
        redirect(URL("edit.html", args=[request.args(1),
request.args(2)])

On Nov 2, 9:15 am, Mike Veltman <[email protected]> wrote:
> > are you able to see the form? or are you getting the "not authorized
> > message?"
>
> > you can set user_signature=False or ensure that user is logged in.
>
> Thanks for the reaction. But no the form is generated perfectly. And the user
> is logged in.
>
>
>
>
>
>
>
>
>
>
>
> > On Wed, Nov 2, 2011 at 6:50 AM, Mike Veltman <[email protected]> wrote:
> > > I have
> > > grid =
>
> > > SQLFORM.grid(query=db.lvstorage.setup_id==usedsetupid,csv=False,details=T
> > > rue,searchable=True)
>
> > > That creates a form with the records with a add button. But when I use
> > > add I
> > > get the next screen but the record is not added. What do I miss ?
>
> > > Btw is the same setup with a query possible with SQLFORM.smartgrid ?
>
> > > With regards,
> > > Mike Veltman
>
> With regards,
> Mike Veltman

Reply via email to