Use delegator.find method, this will return you an object of EntityListIterator. You can use its getPartialList() method to get N records you want. For random records you may need to add logic in groovy itself.
-- Rishi Solanki Manager, Enterprise Software Development HotWax Media Pvt. Ltd. Direct: +91-9893287847 http://www.hotwaxmedia.com On Fri, Jun 29, 2012 at 9:23 AM, Robert G. <[email protected]> wrote: > Hey guys, > > I want to get a list of reviews which are rated > 30. The list shall > contain > a specific amount of reviews, which shall be randomly selected from all > reviews. > > All that I wanna do in the groovy file. How can I do this? > > > > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/get-random-entries-from-entity-field-tp4634190.html > Sent from the OFBiz - User mailing list archive at Nabble.com. >
