Re: [web2py] Re: Problem while using two sqlform.grid in a single form

2012-06-19 Thread Cliff Kachinske
Jonathan, I realize fixing this isn't a priority. Could you retain the edit/view state in the session and retrieve it on reload? On Monday, June 18, 2012 8:48:50 PM UTC-4, Jonathan Lundell wrote: > > On Jun 18, 2012, at 5:17 PM, Massimo Di Pierro wrote: > > The grid uses the request args to fig

Re: [web2py] Re: Problem while using two sqlform.grid in a single form

2012-06-18 Thread Jonathan Lundell
On Jun 18, 2012, at 5:17 PM, Massimo Di Pierro wrote: > The grid uses the request args to figure out which grid page to visualize. > There is only one set of request.args so if you have two grids each of them > thinks the args are for them. You may get some un-intuitive behavior like > navigatin

Re: [web2py] Re: Problem while using two sqlform.grid in a single form

2012-06-18 Thread Massimo Di Pierro
The grid uses the request args to figure out which grid page to visualize. There is only one set of request.args so if you have two grids each of them thinks the args are for them. You may get some un-intuitive behavior like navigating one grid affecting the other grid. The proper way to include

Re: [web2py] Re: Problem while using two sqlform.grid in a single form

2012-06-18 Thread Cornelius Koelbel
+1 I am also using two grids (sometimes 4 grids) on one page. Why not? Kind regards Cornelius Am 18.06.2012 22:02, schrieb Jonathan Lundell: > On Jun 18, 2012, at 3:06 PM, Massimo Di Pierro wrote: >> You cannot have two grids in the same page. > > I'm using two grids on a page. It seemed all I n

Re: [web2py] Re: Problem while using two sqlform.grid in a single form

2012-06-18 Thread Jonathan Lundell
On Jun 18, 2012, at 3:06 PM, Massimo Di Pierro wrote: > You cannot have two grids in the same page. I'm using two grids on a page. It seemed all I needed to do was specify different formnames and it seemed to work. The second table is pretty much read-only, but it does have a paging control, and

[web2py] Re: Problem while using two sqlform.grid in a single form

2012-06-18 Thread Massimo Di Pierro
You cannot have two grids in the same page. On Monday, 18 June 2012 06:09:24 UTC-5, rahulserver wrote: > > I tried to use two sqlform.grid in a web2py form. It does work as intended > except for the problem that when I try to edit on of the form's row, other > form's row with same Id also appear