Re: [web2py] sqlform.factory widget in field problem

2013-06-28 Thread Tom Russell
Actually probably just comment out the line: fs3=form[0][-1] # submit row (last) and that I think will put the submit outside the fieldset. On Fri, Jun 28, 2013 at 2:50 AM, António Ramos wrote: > I dont understand how that gets the submit button out of the last fieldset > > > 2013/6/28 T

Re: [web2py] sqlform.factory widget in field problem

2013-06-27 Thread António Ramos
I dont understand how that gets the submit button out of the last fieldset 2013/6/28 Tom Russell > Here's the rest of my code doing what I posted before... > > if form.process().accepted: > id = db.patient.insert(**db.patient._filter_fields(form.vars)) > form.vars.patient=id >

Re: [web2py] sqlform.factory widget in field problem

2013-06-27 Thread Tom Russell
Here's the rest of my code doing what I posted before... if form.process().accepted: id = db.patient.insert(**db.patient._filter_fields(form.vars)) form.vars.patient=id id = db.emergencycontacts.insert(**db.emergencycontacts._filter_fields(form.vars)) id = db.depend

Re: [web2py] sqlform.factory widget in field problem

2013-06-27 Thread António Ramos
Using this suggestion , my submit button is inside the last fieldset. How do i take it outside? 2013/6/26 Tom Russell > To group inside a field I do something like this with 3 different tables: > > form=SQLFORM.factory(db.patient, db.emergencycontacts, db.dependents) > fs0=form[0][:26]

Re: [web2py] sqlform.factory widget in field problem

2013-06-26 Thread Tom Russell
Another solution can be: {{extend 'layout.html'}} Education CV {{=education_form}} Student {{=student_form}} School {{=school_form}} On Wed, Jun 26, 2013 at 12:47 PM, Tom Russell wrote: > Saved mine too, got it originally from > http://www.web2pyslices.com/slice/show/1457/adding-fieldset-a

Re: [web2py] sqlform.factory widget in field problem

2013-06-26 Thread Tom Russell
Saved mine too, got it originally from http://www.web2pyslices.com/slice/show/1457/adding-fieldset-and-legend-to-forms On Wed, Jun 26, 2013 at 12:39 PM, António Ramos wrote: > That is a very clever solution. > Saved my day. > > Thank you > > > > > 2013/6/26 Tom Russell > >> form[0]=TABLE( >>

Re: [web2py] sqlform.factory widget in field problem

2013-06-26 Thread António Ramos
That is a very clever solution. Saved my day. Thank you 2013/6/26 Tom Russell > form[0]=TABLE( > FIELDSET(TAG.legend("Patient Info"),TABLE(fs0),_id="register0"), > FIELDSET(TAG.legend("Emergency Contact > Info"),TABLE(fs1),_id="register1"), > FIELDSET(TAG.legend("Dependents"),TAB

Re: [web2py] sqlform.factory widget in field problem

2013-06-26 Thread Tom Russell
To group inside a field I do something like this with 3 different tables: form=SQLFORM.factory(db.patient, db.emergencycontacts, db.dependents) fs0=form[0][:26] #patient rows fs1=form[0][26:37] #emergency contacts fs2=form[0][37:41] #dependents fs3=form[0][-1] # submi