pagination in ofbiz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

pagination in ofbiz

Jaki-2
Is it possible to implement pagination in an ofbiz service? I want it to retrieve products based on the page no. selected and the number of products to be displayed on a page (say pagesize). eg: if the 2nd page is selected and pagesize is 10 I want it to fetch only those products which come in rows from 11-20.
I want this to be done via a service and not through widgets. Kindly help
Reply | Threaded
Open this post in threaded view
|

Re: pagination in ofbiz

BJ Freeman
if you look at the widgets code on pagination was well as the widget
that displays such pagination , I am sure you can come up with a java
service to accomplish what you want.

jaki sent the following on 7/2/2008 7:12 AM:
> Is it possible to implement pagination in an ofbiz service? I want it to
> retrieve products based on the page no. selected and the number of products
> to be displayed on a page (say pagesize). eg: if the 2nd page is selected
> and pagesize is 10 I want it to fetch only those products which come in rows
> from 11-20.
> I want this to be done via a service and not through widgets. Kindly help

Reply | Threaded
Open this post in threaded view
|

Re: pagination in ofbiz

byersa
In reply to this post by Jaki-2
I was just looking at this. You may want to look at the
GenericDelegator.find method which returns an EntityListIterator and then
use the ELI.getPartialList method.

-Al

On Wed, Jul 2, 2008 at 8:12 AM, jaki <[hidden email]> wrote:

>
> Is it possible to implement pagination in an ofbiz service? I want it to
> retrieve products based on the page no. selected and the number of products
> to be displayed on a page (say pagesize). eg: if the 2nd page is selected
> and pagesize is 10 I want it to fetch only those products which come in
> rows
> from 11-20.
> I want this to be done via a service and not through widgets. Kindly help
> --
> View this message in context:
> http://www.nabble.com/pagination-in-ofbiz-tp18238381p18238381.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: pagination in ofbiz

anil.soni
Jaki,

Yes, it is possible to implement pagination via a service, if you look at
the following jira issue then you come up with a easy approach.

https://issues.apache.org/jira/browse/OFBIZ-1553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

I hope it will be helpful.

On 7/2/08, Al Byers <[hidden email]> wrote:

>
> I was just looking at this. You may want to look at the
> GenericDelegator.find method which returns an EntityListIterator and then
> use the ELI.getPartialList method.
>
> -Al
>
> On Wed, Jul 2, 2008 at 8:12 AM, jaki <[hidden email]> wrote:
>
> >
> > Is it possible to implement pagination in an ofbiz service? I want it to
> > retrieve products based on the page no. selected and the number of
> products
> > to be displayed on a page (say pagesize). eg: if the 2nd page is selected
> > and pagesize is 10 I want it to fetch only those products which come in
> > rows
> > from 11-20.
> > I want this to be done via a service and not through widgets. Kindly help
> > --
> > View this message in context:
> > http://www.nabble.com/pagination-in-ofbiz-tp18238381p18238381.html
> > Sent from the OFBiz - User mailing list archive at Nabble.com.
> >
> >
>



--
Anil Soni
Software Engineer, Mumbai
Contact no.- +91-9892271357