The old function I used passed values using args. Now I'm using
session variables instead, so I need a way to move forward and
backward between records.

I need the button to decrement the session variable, then redirect to
the page.

On May 2, 9:36 pm, Massimo Di Pierro <massimo.dipie...@gmail.com>
wrote:
> http://mywiki.wooledge.org/XyProblem
>
> what do you want to do exactly?
>
> On May 1, 8:04 pm, niknok <nikolai...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I have this button that redirects to a URL:
>
> > form[0][-1][1].append(INPUT(_type='button',_value=T('Previous')
> >                             ,_onclick='document.location="%s"' 
> > %URL("question")))
>
> > what do I add to _onclick to do the following:
> > 1) session.current_item -=1
> > 2) redirect(URL('question'))
>
> > /r
> > Nik

Reply via email to