You shoud use getRelated. Look into InventoryItemTotals.groovy

Jacques

From: "madppiper" <[EMAIL PROTECTED]>

Could somebody clarify how one would generate a list of products that
additionally also contain the prices?

I myself got:

delegator = request.getAttribute("delegator");
products = delegator.findAll("Product");

context.put("products", productPromos);

/*Find Prices*/
List productPrices = delegator.findByAnd(
       "ProductPrice", UtilMisc.toMap("productPriceTypeId",
"DEFAULT_PRICE")); context.put("priceMap", productPrices);



But that, of course, wouldn't print out the correct price of any product...
how do i access that data or put them both into relation?
--
View this message in context: 
http://www.nabble.com/Cannot-Retrive-price-from-ProductPrice-tp10407489p20816146.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to