Re: [web2py] Re: Reload page on component form submit

2014-05-09 Thread Carlos Cesar Caballero Díaz
Stewart, thanks for sharing such clear example!!! El 08/05/14 22:51, LaDarrius Stewart escribió: ---controller-- @auth.requires_login() def test(): a=request.args(0) form=SQLFORM(db.Notes).process() form.vars.TestID = a comments=db(db.Test

Re: [web2py] Re: Reload page on component form submit

2014-05-08 Thread LaDarrius Stewart
---controller-- @auth.requires_login() def test(): a=request.args(0) form=SQLFORM(db.Notes).process() form.vars.TestID = a comments=db(db.Test.TestID==a).select() if form.process(formname="somename").accepted: form.vars.TestID = a

Re: [web2py] Re: Reload page on component form submit

2014-05-08 Thread Carlos Cesar Caballero Díaz
Anthony, thanks for your answer. Of course, the form is submitted to the parent page... I think that I should rest a litle and continue tomorrow... Thanks again for your answer El 08/05/14 10:10, Anthony escribió: You should not set ajax_trap=False, as that will cause the form to be submitt