I am just trying to find the defaultPrice of every product 
I have written this code


delegator = request.getAttribute("delegator");
List products = delegator.findAll("Product");
context.put("products",products);


List productlist = FastList.newInstance();
 Iterator catalogsItr = products.iterator();
while (catalogsItr.hasNext()) 
{  
GenericValue catalog = (GenericValue) catalogsItr.next();
  product = delegator.findByPrimaryKey("Product",
UtilMisc.toMap("productId",catalog.getString("productId")));
  priceContext = UtilMisc.toMap("product", product);
  priceMap = dispatcher.runSync("calculateProductPrice", priceContext);
}
 
But it is not working ,Please help ASAP

-- 
View this message in context: 
http://www.nabble.com/Cannot-Retrive-price-from-ProductPrice-tf3719796.html#a10407489
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to