[Catalyst] Paging problem

2012-04-27 Thread Kenneth S Mclane
ok, I used bits from all over and have this sub now: sub list :Local { my ($self, $c) = @_; my $page = 1; my $rs = $c-model('ORANGES::AccountView')-search_rs(undef, { order_by = 'account_code', rows = 15, page = $page,

Re: [Catalyst] Paging problem

2012-04-27 Thread Denny
On Fri, 2012-04-27 at 14:22 -0500, Kenneth S Mclane wrote: ok, I used bits from all over and have this sub now: [...] my $page = 1; [...] when clicking any link the data doesn't change. That seems reasonable. You need to change the value of $page if you want to move to the next

Re: [Catalyst] Paging problem

2012-04-27 Thread Kenneth S Mclane
/2012 02:49 PM Subject: Re: [Catalyst] Paging problem On Fri, 2012-04-27 at 14:22 -0500, Kenneth S Mclane wrote: ok, I used bits from all over and have this sub now: [...] my $page = 1; [...] when clicking any link the data doesn't change. That seems reasonable. You need to change

Re: [Catalyst] Paging problem

2012-04-27 Thread Alex Povolotsky
On 04/28/12 00:05, Kenneth S Mclane wrote: ok, I tried this: my ($self, $c, $page) = @_; and my template code is issueing uri's like this: http://localhost:3000/accountview/list?page=4 http://localhost:3000/accountview/list?page=4 Do I need to remove this line: my $page = 1; It

Re: [Catalyst] Paging problem

2012-04-27 Thread Cory Watson
Alex Povolotsky wrote: On 04/28/12 00:05, Kenneth S Mclane wrote: ok, I tried this: my ($self, $c, $page) = @_; and my template code is issueing uri's like this: http://localhost:3000/accountview/list?page=4 http://localhost:3000/accountview/list?page=4 Do I need to remove this line: my

Re: [Catalyst] Paging problem

2012-04-27 Thread Kenneth S Mclane
@lists.scsys.co.uk Date: 04/27/2012 03:17 PM Subject: Re: [Catalyst] Paging problem On 04/28/12 00:05, Kenneth S Mclane wrote: ok, I tried this: my ($self, $c, $page) = @_; and my template code is issueing uri's like this: http://localhost:3000/accountview/list?page=4 Do I need to remove this line

Re: [Catalyst] Paging problem

2012-04-27 Thread Kenneth S Mclane
: 04/27/2012 03:20 PM Subject: Re: [Catalyst] Paging problem Alex Povolotsky wrote: On 04/28/12 00:05, Kenneth S Mclane wrote: ok, I tried this: my ($self, $c, $page) = @_; and my template code is issueing uri's like this: http://localhost:3000/accountview/list?page=4 http://localhost

Re: [Catalyst] Paging problem

2012-04-27 Thread Dimitar Petrov
= $rs-pager()); } and now it works! Thanks all. I will be back. From: Cory Watson jheep...@gmail.com To: The elegant MVC web framework catalyst@lists.scsys.co.uk Date: 04/27/2012 03:20 PM Subject: Re: [Catalyst] Paging problem -- Alex Povolotsky wrote