By definition one sqlform has one submit. You can combine the fields
of multiple forms in one bigger form but you must make sure the names
have no conflict.

On Dec 19, 3:42 pm, Mikey Jokinen <[email protected]> wrote:
> Is this possible?  It means one submit, four sqlforms.
>
> 2009/12/17 Mikey Jokinen <[email protected]>
>
> > db.define_table('table1',Field('field1'), Field('field2'))
>
> > rows = db(db.field2 == 1).select()  #this has allways 4 rows or maybe more
> > in future
>
> > something like this "form=SQLFORM.factory(db.table1.field1, rows)"
> > I now have "form1 = SQLFORM(db.table1, rows[n])",  n = 0..3
> > mean all the rows comes into one form with one submit.
>
> > Mikko
> > -
>
> > 2009/12/17 mdipierro <[email protected]>
>
> > db.define_table('table1',Field('field1')
> >> db.define_table('table2',Field('field2')
> >> db.define_table('table3',Field('field3')
> >> db.define_table('table4',Field('field4')
>
> >> form=SQLFORM.factory(db.table1.field1,
> >>                     db.table2.field2,
> >>                     db.table3.field3,
> >>                     db.table4.field4)
>
> >> something like this?
>
> >> On Dec 17, 2:57 pm, Mikey Jokinen <[email protected]> wrote:
> >> > 4 different fields / rows from the same table.
>
> >> > I now have 4 forms and 4 submit buttons. I dont like 4 submits...
> >> everything
> >> > else in forms (except datepciker and submits) is ok.
>
> >> > Mikko
> >> > -
>
> >> > 2009/12/17 mdipierro <[email protected]>
>
> >> > > You mean four fields from the same tables or 4 instances of the same
> >> > > field?
>
> >> > > On Dec 17, 2:28 am, Mikko <[email protected]> wrote:
> >> > > > Comes to mind.
>
> >> > > > What is the best way to put 4 lines from same database table into
> >> same
> >> > > > form?   What is easy model to do this?
>
> >> > > > mr.freeze, I havent got time to try your widget yet.
>
> >> > > > Mikko
> >> > > > -
>
> >> > > > On 14 joulu, 02:45, Mikey Jokinen <[email protected]> wrote:
>
> >> > > > > Thanks and if quickfix (ie. with this calendar widget) comes in
> >> mind...
> >> > > I'll
> >> > > > > be fixed too ;)
> >> > > > > Any way to do something for id...  I guess should learn form
> >> factory!
>
> >> > > > > Mikko
> >> > > > > -
>
> >> > > > > 2009/12/13 mr.freeze <[email protected]>
>
> >> > > > > > Has anyone identified or built a replacement? I could try to
> >> find
> >> > > one.
>
> >> > > > > > On Dec 13, 11:02 am, mdipierro <[email protected]> wrote:
> >> > > > > > > I played around with web2py_ajax.html the problem is that
> >> calendar
> >> > > > > > > uses field "id" to identify the element. If you display twice
> >> the
> >> > > same
> >> > > > > > > same form for the same table, the two fields have the same
> >> "id" and
> >> > > > > > > calendar does not distinguish them.
>
> >> > > > > > > Perhaps the problem will be gone as we move to a different
> >> > > calendar.
>
> >> > > > > > > On Dec 13, 6:01 am, Mikey Jokinen <[email protected]>
> >> wrote:
>
> >> > > > > > > >  I'll try web2py custom date widget first. I also have time
> >> > > picker in
> >> > > > > > the
> >> > > > > > > > form and it works fine!
>
> >> > > > > > > >  In ''/take_slice/25 <
> >> > > > > >http://www.web2pyslices.com/main/slices/take_slice/25>'
> >> > > > > > > > month name customize is also good.
>
> >> > > > > > > > So going with these now. This, of course is solved in
> >> future! :)
>
> >> > > > > > > > I'll tell how it goes..
>
> >> > > > > > > > 2009/12/13 mr.freeze <[email protected]>
>
> >> > > > > > > > > If you can get away with just a date, here are two
> >> options:
> >> > > > > > > > >http://www.web2pyslices.com/main/slices/take_slice/22
> >> > > > > > > > >http://www.web2pyslices.com/main/slices/take_slice/25
>
> >> > > > > > > > > The latter should be easy to modify to include the time.
>
> >> > > > > > > > > Hope that helps.
>
> >> > > > > > > > > On Dec 12, 7:36 pm, Mikey J <[email protected]>
> >> wrote:
> >> > > > > > > > > > So I very much need help to solve this.
> >> > > > > > > > > > custom widget tutor could also help.
>
> >> > > > > > > > > > On 13 joulu, 02:31, "mr.freeze" <[email protected]>
> >> > > wrote:
>
> >> > > > > > > > > > > You're not doing anything wrong. It's either a problem
> >> with
> >> > > the
> >> > > > > > > > > > > calendar.js plugin or the way it is implemented in
> >> > > > > > web2py_ajax.html.
>
> >> > > > > > > > > > > On Dec 12, 5:49 pm, Mikey J <[email protected]>
> >> > > wrote:
>
> >> > > > > > > > > > > > This problem comes also with default view.. and
> >> Firefox,
> >> > > IE7..
> >> > > > > >  Too
> >> > > > > > > > > > > > depressed to try opera ;)
>
> >> > > > > > > > > > > > On 13 joulu, 00:45, Mikey J <[email protected]
>
> >> > > wrote:
>
> >> > > > > > > > > > > > > Hello,
>
> >> > > > > > > > > > > > > I've four rows from db, four SQLForms in view.
> >> > > > > > > > > > > > > {{=form1}}
> >> > > > > > > > > > > > > {{=form2}}
> >> > > > > > > > > > > > > {{=form3}}
> >> > > > > > > > > > > > > {{=form4}}
> >> > > > > > > > > > > > > forms come from same table and every form has two
> >> > > datetime
> >> > > > > > fields.
>
> >> > > > > > > > > > > > > calendar only works in first form in view. Does
> >> not
> >> > > mather
> >> > > > > > witch
> >> > > > > > > > > form
> >> > > > > > > > > > > > > comes first datetime picker works only in that
> >> form
>
> >> > > > > > > > > > > > > Am I doing something wrong?
>
> >> > > > > > > > > --
>
> >> > > > > > > > > You received this message because you are subscribed to
> >> the
> >> > > Google
> >> > > > > > Groups
> >> > > > > > > > > "web2py-users" group.
> >> > > > > > > > > To post to this group, send email to
> >> [email protected].
> >> > > > > > > > > To unsubscribe from this group, send email to
> >> > > > > > > > > [email protected]<web2py%[email protected]>
> >> <web2py%[email protected]<web2py%[email protected]>
>
> >> > > <web2py%[email protected]<web2py%[email protected]>
> >> <web2py%[email protected]<web2py%[email protected]>
>
> >> > > > > > <web2py%[email protected]<web2py%[email protected]>
> >> <web2py%[email protected]<web2py%[email protected]>
>
> >> > > <web2py%[email protected]<web2py%[email protected]>
> >> <web2py%[email protected]<web2py%[email protected]>
>
> >> > > > > > > > > .
> >> > > > > > > > > For more options, visit this group at
> >> > > > > > > > >http://groups.google.com/group/web2py?hl=en.
>
> >> > > > > > --
>
> >> > > > > > You received this message because you are subscribed to the
> >> Google
> >> > > Groups
> >> > > > > > "web2py-users" group.
> >> > > > > > To post to this group, send email to [email protected].
> >> > > > > > To unsubscribe from this group, send email to
> >> > > > > > [email protected]<web2py%[email protected]>
> >> <web2py%[email protected]<web2py%[email protected]>
>
> >> > > <web2py%[email protected]<web2py%[email protected]>
> >> <web2py%[email protected]<web2py%[email protected]>
>
> >> > > > > > .
> >> > > > > > For more options, visit this group at
> >> > > > > >http://groups.google.com/group/web2py?hl=en.
>
> >> > > --
>
> >> > > You received this message because you are subscribed to the Google
> >> Groups
> >> > > "web2py-users" group.
> >> > > To post to this group, send email to [email protected].
> >> > > To unsubscribe from this group, send email to
> >> > > [email protected]<web2py%[email protected]>
> >> <web2py%[email protected]<web2py%[email protected]>
>
> >> > > .
> >> > > For more options, visit this group at
> >> > >http://groups.google.com/group/web2py?hl=en.
>
> >> --
>
> >> You received this message because you are subscribed to the Google Groups
> >> "web2py-users" group.
> >> To post to this group, send email to [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected]<web2py%[email protected]>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/web2py?hl=en.
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to