<font size=2 face="sans-serif">ok, I used bits from all over and have
this sub now:</font>
<br>
<br><font size=2 face="sans-serif">sub list :Local {</font>
<br><font size=2 face="sans-serif"> my
($self, $c) = @_;</font>
<br><font size=2 face="sans-serif"> my
$page = 1;</font>
<br><font size=2 face="sans-serif"> my
$rs = $c->model('ORANGES::AccountView')->search_rs(undef, { </font>
<br><font size=2 face="sans-serif">
order_by => 'account_code',</font>
<br><font size=2 face="sans-serif">
rows => 15,</font>
<br><font size=2 face="sans-serif">
page => $page,</font>
<br><font size=2 face="sans-serif"> });</font>
<br><font size=2 face="sans-serif"> $c->stash(accounts
=> $rs);</font>
<br><font size=2 face="sans-serif"> $c->stash(pager
=> $rs->pager());</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">This gets my data, in the order I want,
gives me 15 rows and I found some pager template code on-line which shows
that it is doing it's job, however, when clicking any link the data doesn't
change. </font>
<br>
<br><font size=2 face="sans-serif">I tried changing </font>
<br><font size=2 face="sans-serif">$c->stash(pager => $rs->pager());</font>
<br>
<br><font size=2 face="sans-serif">to $c->stash(pager => $accounts->pager());</font>
<br>
<br><font size=2 face="sans-serif">but get an error about a non paged resultset.
I have been searching for a couple of hours and cannot find any examples
using the stash that I can get to work. I'm really close I know. I think
it's another one of those cases where I am not sure of the exact way to
type it in.</font>
<br><font size=2 face="sans-serif"><br>
</font>
<br><font size=2 face="Arial">Regards</font>
<br>
<br>