Limiting list resultset

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

Limiting list resultset

Gavin Mabie
Hi

 

Does anybody have any pointers on how to limit a list size - say to the
first three items - I am using a screen definition with an freemarker file.

 

Thanks in advance

 

Gavin

Reply | Threaded
Open this post in threaded view
|

Re: Limiting list resultset

hans_bakker
Hi Gavin,

use the findlist service in the action part of the screen and use the
resulting list in the freemarker file.

Regards,
Hans

--
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Myself on twitter: http://twitter.com/hansbak
Antwebsystems.com: Quality services for competitive rates.

On Mon, 2010-11-22 at 14:39 +0200, Gavin Mabie wrote:

> Hi
>
>  
>
> Does anybody have any pointers on how to limit a list size - say to the
> first three items - I am using a screen definition with an freemarker file.
>
>  
>
> Thanks in advance
>
>  
>
> Gavin
>


Reply | Threaded
Open this post in threaded view
|

RE: Limiting list resultset

Gavin Mabie
Hi Hans

Can I also use the performFind service? - I can't find any examples with findlist in the screen definitions.

Thanks

Gavin

-----Original Message-----
From: Hans Bakker [mailto:[hidden email]]
Sent: 22 November 2010 02:45 PM
To: [hidden email]
Subject: Re: Limiting list resultset

Hi Gavin,

use the findlist service in the action part of the screen and use the
resulting list in the freemarker file.

Regards,
Hans

--
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Myself on twitter: http://twitter.com/hansbak
Antwebsystems.com: Quality services for competitive rates.

On Mon, 2010-11-22 at 14:39 +0200, Gavin Mabie wrote:

> Hi
>
>  
>
> Does anybody have any pointers on how to limit a list size - say to the
> first three items - I am using a screen definition with an freemarker file.
>
>  
>
> Thanks in advance
>
>  
>
> Gavin
>


Reply | Threaded
Open this post in threaded view
|

RE: Limiting list resultset

Gavin Mabie
In reply to this post by hans_bakker
Thanks Hans

I used the break directive in freemarker.

Thanks

-----Original Message-----
From: Hans Bakker [mailto:[hidden email]]
Sent: 22 November 2010 02:45 PM
To: [hidden email]
Subject: Re: Limiting list resultset

Hi Gavin,

use the findlist service in the action part of the screen and use the
resulting list in the freemarker file.

Regards,
Hans

--
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Myself on twitter: http://twitter.com/hansbak
Antwebsystems.com: Quality services for competitive rates.

On Mon, 2010-11-22 at 14:39 +0200, Gavin Mabie wrote:

> Hi
>
>  
>
> Does anybody have any pointers on how to limit a list size - say to the
> first three items - I am using a screen definition with an freemarker file.
>
>  
>
> Thanks in advance
>
>  
>
> Gavin
>