ERXRest response
Giles Palmer <[email protected]> Mon, 13 May 2013 12:17:32 +0100
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
Hi All I have a webPage entity that has a to-many relationship to stockItems. I am using my controller class and ERXKeyFilters to create the webPage response along with the related stockItems and this all works well. However I also want to add a "salePrice" value to the response for each of the stock items and this sale price is calculated by a stockItem using a priceList object. In my StockItem.java it is just a method: public BigDecimal getUnitPriceForSale(PriceList priceList). How would I include/add this "salePrice" to the stockItem when it is not a simple attribute of a stockItem? Many thanks Giles ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may