[web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-19 Thread apple
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 wrote: > Hi, > I have one form created with SQLFORM and another form created with > S

[web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-19 Thread Cliff
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://we

[web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-20 Thread apple
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 perso

[web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-21 Thread Cliff
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

[web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-21 Thread apple
I have done something similar to what you are looking for but it was a little fiddly in places (if someone can suggest a better way I would be delighted!). My application had some extra functionality but the gist of it is: You have a form and a grid. You can put these on the same page easily using

[web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-21 Thread apple
I missed a bit..[I did say it was a bit fiddly!] You still need to refresh the grid when the dialog box closes. To do this I replaced the LOAD calls with load2 which adds a url to the component: def load2(**args): """ calls LOAD and sets url attribute to enable easy refresh of the compone

Re: [web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-20 Thread Martin Weissenboeck
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" (

Re: [web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-20 Thread Jim Steil
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.

Re: [web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-20 Thread Martin Weissenboeck
I will answer inline: 2011/12/20 apple > 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? >

Re: [web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-20 Thread Martin Weissenboeck
2011/12/20 Jim Steil > have you looked at SQLFORM.smartgrid? > Yes, but I did not find a solution for this task. > > -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 descri

Re: [web2py] Re: Combine SQLFORM and SQLFORM.grid?

2011-12-21 Thread Martin Weissenboeck
a lot of ideas - many thanks to all. i will try it during the next days! 2011/12/21 apple > I missed a bit..[I did say it was a bit fiddly!] > > You still need to refresh the grid when the dialog box closes. To do > this I replaced the LOAD calls with load2 which adds a url to the > componen