OK so each person who has zero or more cvrows and you want to show
this on one screen. But I am still not quite clear when you refer to a
submit button for the grid. Do you mean the grid has an add button and
each row has view/edit/delete buttons?

Assuming the latter then when you change the person data does the
cvrows change? And when you add/edit/delete a cvrow then does the
person data change? Or are they two linked tables but with no shared
data aside from the person id?

On Dec 20, 7:39 pm, Martin Weissenboeck <mweis...@gmail.com> 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

Reply via email to