Remember web2py uses the term 'form' in a very specific way. So don't think about a web2py form for CRUD operations on child records. You need a way to dynamically update the web page so it can manage the child records. Web2py provides several approaches to this problem.
The image blog example in the book outlines a design approach that will solve your problem. http://web2py.com/books/default/chapter/29/3#An-image-blog Also look here for other solutions: http://web2py.com/books/default/chapter/29/11#The-ajax-function http://web2py.com/books/default/chapter/29/12#Components On Dec 21, 1:22 am, Martin Weissenboeck <mweis...@gmail.com> wrote: > Ok, thank you - I will try it. > > 2011/12/21 Nik Go <nikolai...@gmail.com> > > > > > > > > > Martin, > > > I have a feeling that what you're looking is "multi-form updates" (try to > > search for that term) where a parent record (your "person") and child > > record (your "cvrows") are updated simultaneously. > > > On Wednesday, December 21, 2011, Jim Steil wrote: > > >> have you looked at SQLFORM.smartgrid? > > >> -Jim > > >> On 12/20/2011 1:39 PM, Martin Weissenboeck wrote: > > >> Thanks for all hints, I have found some new ideas and I will try a ot of > >> new things. > > >> But -may I describe my problem in detail? > >> There should be a website for persons who want to apply for a job. > > >> My present solution: > >> Table "person" contains name, date of birth, phone number and so on. > >> Table "cv" (curriculum vitae) contains for each person zero or more rows. > >> Each row consists of the dates of the start and the end of the occupation > >> and some details about the occupation. > > >> Page one is a SQLFORM of table "person" with a submit button. If the form > >> is filled without errors the user is redirected to the second page. There > >> is a SQLFORM.grid of table "cv" on this page. Of course person.id from > >> page one is used on page two. Page two has it's own submit button. > > >> My question: > >> It would be nice to have both forms (the form for the person and the form > >> for some rows of cv) on one page with only one submit button. Is there any > >> way to concatanate these two forms? > > >> 2011/12/19 Cliff <cjk...@gmail.com> > > >>> Martin, > >>> There has been discussion about manipulating grid. Search for threads > >>> containing form.create() > > >>> Also perhaps Anthony will chime in. He knows this stuff pretty well. > > >>> apple, > >>> > Surely the grid is just a grid and does not have a submit button? > > >>> SQLFORM.grid is much more than that. > > >>>http://web2py.com/books/default/chapter/29/7#SQLFORM.grid-and-SQLFORM...) > > >>> On Dec 19, 9:48 am, apple <simo...@gmail.com> wrote: > >>> > Surely the grid is just a grid and does not have a submit button? > > >>> > Do you mean that you have a grid linked to a form and you want to > >>> > refresh it when the form is submitted? > > >>> > On Dec 18, 9:10 pm, Martin Weissenboeck <mweis...@gmail.com> wrote: > > >>> > > Hi, > >>> > > I have one form created with SQLFORM and another form created with > >>> > > SQLFORM.grid. Each form has its own submit-button. > >>> > > Is there a simple way to concatanate these forms to one form, which > >>> could > >>> > > be sent with one submit-button? > > >>> > > Regards, Martin