sorry, wasn't reading properly: if you have two separate grids in two separate tabs than you can do as Anthony suggested (that, by the same principle, it's the recommended way to have two separate grids LOADed in one page). The problem I described comes from having two tabs with the SAME grid in it.
On Friday, July 26, 2013 9:36:35 PM UTC+2, Anthony wrote: > > Try: > > def page01: > grid = SQLFORM.grid(..., formname='page01_grid') > > def page01: > grid = SQLFORM.grid(..., formname='page02_grid') > > By default, all grids get the same formname, but you can assign a unique > formname to each grid. The formname is used to store the referrer in the > session, so unique formnames should keep the referrers for each grid > separate. > > Anthony > > > On Friday, July 26, 2013 3:11:38 PM UTC-4, David Marko wrote: >> >> I accidentlly found a strange thing / bug when I open two browser tabs of >> the same app with two different pages having different grids. >> >> Scenario: >> a) open page01 with grid (first browser tab) >> b) open page02 with another grid (another browser tab) >> c) go back to first tab and refresh/reload the page01 >> d) go to second tab with page02 and click on 'edit' on any row. Now the >> edit page 'back' button points to page01 and not to page02, from which the >> edit page came from >> >> Hopefully its not too messy. I tested many times, still the same ... >> >> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

