hello,

I've a form with checkboxes and radiobuttons.
All the checkboxes and radioboxes are auto-commit, i.e. the have an argument
   onchange="this.form.submit()"

Now this works perfect, as soon as a button is changed, the page is refreshed with a new selection from the database.

Now I've some other actions on this form, which are realized by a link.

This link points to a "controler" that does some action and then redirects to the orginal form.
But now the settings of the checkboxes and radiobuttons is lost,
I assume the request and specially the "request.post_vars" ar lost.

The "controler" looks like :

@auth.requires_login()
def Block_Page():
  if auth.user.id in Beheerders and request.args :
    ID = request.args [0]
    db ( db.Knutsels.id == ID ).update ( Approved_Date = None )
  redirect ( URL ( Show_Knutselen ))

thanks,
Stef

--
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to