the "problem" is that by default the referrer (i.e. the last page browsed, that of course is used to fill the back link) is stored in a session variable: fortunately it is formname dependant. https://github.com/niphlod/web2py/blob/master/gluon/sqlhtml.py#L1833 Maybe we could use a formname='auto' parameter that fills the formname with something request dependant, such as "%s_%s" % (request.controller, request.function), so if the grid(s) comes from a different function it "automatically" works without having to rely on the explicit different formname parameter. If so, please open a ticket pointing to this thread.
However, I was glad to help. On Friday, February 15, 2013 12:36:50 PM UTC+1, Simon Ashley wrote: > > Thanks Niphlod, that worked. > > (Eventually. > Had some weird caching going on. > The submit was originally redirecting to an unrelated controller and > function. > Eventually cleared itself after deleting and reinserting the formname > attribute. > Using current trunk) > -- --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.