<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">&nbsp; &nbsp; &nbsp; &nbsp; my
($self, $c) = @_;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; my
$page = 1;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; my
$rs = $c-&gt;model('ORANGES::AccountView')-&gt;search_rs(undef, { </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; order_by =&gt; 'account_code',</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; rows =&gt; 15,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; page =&gt; $page,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;});</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; $c-&gt;stash(accounts
=&gt; $rs);</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; $c-&gt;stash(pager
=&gt; $rs-&gt;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-&gt;stash(pager =&gt; $rs-&gt;pager());</font>
<br>
<br><font size=2 face="sans-serif">to $c-&gt;stash(pager =&gt; $accounts-&gt;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>