RE: Need to fetch records using multiple ids in where clause

2012-05-01 Thread Skip
Try this: List productIds = UtilMisc.toList("product1", "product2", etc); List productsList = delegator.findByCondition("Product", new EntityExpr("productId", EntityOperator.IN, productIds), null, null); You can also use findByAnd Skip -Original Message- Fro

Re: Need to fetch records using multiple ids in where clause

2012-05-01 Thread krishan.babbar
prohibited. Thank you for your compliance. -Original Message- From: Skip Sent: Tuesday, May 01, 2012 9:59 PM To: user@ofbiz.apache.org Subject: RE: Need to fetch records using multiple ids in where clause Try this: List productIds = UtilMisc.toList("product1", "

RE: Need to fetch records using multiple ids in where clause

2012-05-01 Thread deb . panda
used later by all developers. Dev From: "Skip" To: Date: 05/01/2012 10:04 PM Subject: RE: Need to fetch records using multiple ids in where clause Try this: List productIds = UtilMisc.toList("product1", "product2", etc);

Re: Need to fetch records using multiple ids in where clause

2012-05-02 Thread krishan.babbar
prohibited. Thank you for your compliance. -Original Message- From: deb.pa...@tcs.com Sent: Wednesday, May 02, 2012 12:05 PM To: user@ofbiz.apache.org Cc: user@ofbiz.apache.org Subject: RE: Need to fetch records using multiple ids in where clause Sharing an experience findByCondition - is