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 <javascript:_e({}, 'cvml',
> '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.smartgrid-(experimental)
>>
>> On Dec 19, 9:48 am, apple <simo...@gmail.com <javascript:_e({}, 'cvml',
>> '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<javascript:_e({}, 'cvml', '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