Is this possible? It means one submit, four sqlforms. 2009/12/17 Mikey Jokinen <missingtu...@gmail.com>
> 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 <mdipie...@cs.depaul.edu> > > 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 <missingtu...@gmail.com> 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 <mdipie...@cs.depaul.edu> >> > >> > > You mean four fields from the same tables or 4 instances of the same >> > > field? >> > >> > > On Dec 17, 2:28 am, Mikko <mkkjoki...@gmail.com> 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 <missingtu...@gmail.com> 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 <nat...@freezable.com> >> > >> > > > > > Has anyone identified or built a replacement? I could try to >> find >> > > one. >> > >> > > > > > On Dec 13, 11:02 am, mdipierro <mdipie...@cs.depaul.edu> 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 <missingtu...@gmail.com> >> 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 <nat...@freezable.com> >> > >> > > > > > > > > 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 <missingtu...@gmail.com> >> wrote: >> > > > > > > > > > So I very much need help to solve this. >> > > > > > > > > > custom widget tutor could also help. >> > >> > > > > > > > > > On 13 joulu, 02:31, "mr.freeze" <nat...@freezable.com> >> > > 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 <missingtu...@gmail.com> >> > > wrote: >> > >> > > > > > > > > > > > This problem comes also with default view.. and >> Firefox, >> > > IE7.. >> > > > > > Too >> > > > > > > > > > > > depressed to try opera ;) >> > >> > > > > > > > > > > > On 13 joulu, 00:45, Mikey J <missingtu...@gmail.com >> > >> > > 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 >> web...@googlegroups.com. >> > > > > > > > > To unsubscribe from this group, send email to >> > > > > > > > > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> >> <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com> >> > >> > > <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com> >> <web2py%252bunsubscr...@googlegroups.com<web2py%25252bunsubscr...@googlegroups.com> >> > >> > >> > > > > > <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com> >> <web2py%252bunsubscr...@googlegroups.com<web2py%25252bunsubscr...@googlegroups.com> >> > >> > > <web2py%252bunsubscr...@googlegroups.com<web2py%25252bunsubscr...@googlegroups.com> >> <web2py%25252bunsubscr...@googlegroups.com<web2py%2525252bunsubscr...@googlegroups.com> >> > >> > >> > > > > > > > > . >> > > > > > > > > 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 web...@googlegroups.com. >> > > > > > To unsubscribe from this group, send email to >> > > > > > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> >> <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com> >> > >> > > <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com> >> <web2py%252bunsubscr...@googlegroups.com<web2py%25252bunsubscr...@googlegroups.com> >> > >> > >> > > > > > . >> > > > > > 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 web...@googlegroups.com. >> > > To unsubscribe from this group, send email to >> > > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> >> <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com> >> > >> > > . >> > > 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 web...@googlegroups.com. >> To unsubscribe from this group, send email to >> web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> >> . >> 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 web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.