Hi
At last I seem to be getting to grips with everything the "categorydetail" screen and associated .bsh and .ftl files are doing (well sort of). I have provided a local implementation of the getProductCategoryAndLimitedMembers service which is called from categorydetail.bsh. This local implementation returns products to be displayed in the category, together with product pricing in an xml document from a 3rd party system. Within categorydetail.bsh, the xml document is then pop into the context and hence is available in the productsummary screen. productsummary.bsh via some help from a java service then picks the correct price to display from the xml document, and all looks good on the category page (prices, ProductCategoryLink etc ...). So all is well up to this point. However when clicking on the ProductCategoryLink, the screen that is displayed (I assume miniproductsummary) my prices are zero. So my real question is how can I get my xml document that contains the pricing into miniproductsummary.bsh via the ProductCategoryLink. Request parameter ?, if so how. Go easy on me please, I am no GUI man. Thanks for your help. Kind regards Grant Edwards <screen name="categorydetail"> <section> <actions> <set field="productsummaryScreen" value="component://ecommerce/widget/CatalogScreens.xml#productsummary"/> <set field="productCategoryLinkScreen" value="component://ecommerce/widget/CatalogScreens.xml#ProductCategoryLink"/> <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/categorydetail.bsh"/> <entity-and entity-name="ProductCategoryLink" list-name="productCategoryLinks" use-cache="true" filter-by-date="true"> <field-map field-name="productCategoryId" env-name="productCategoryId"/> <order-by field-name="sequenceNum"/> </entity-and> </actions> <widgets> <platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl"/></html></platform-specific> </widgets> </section> </screen> |
Grant
If the link is a submit, you can put the price in a hidden input control. If it is just a link, build the link with the price in it, eg. http://URL?price=xxx Alternately, put the xml data in the session and process it with a service prior to calling the screen as in: <request-map uri="completeSalesOrder"> <security https="true" auth="true"/> <event type="java" path="mypath" invoke="getMyPrice"/> <response name="success" type="view" value="showPrice"/> <response name="error" type="view" value="showPrice"/> </request-map> -----Original Message----- From: Grant Edwards [mailto:[hidden email]] Sent: Monday, April 07, 2008 10:38 AM To: [hidden email] Subject: miniproductsummary and the ProductCategoryLink Hi At last I seem to be getting to grips with everything the "categorydetail" screen and associated .bsh and .ftl files are doing (well sort of). I have provided a local implementation of the getProductCategoryAndLimitedMembers service which is called from categorydetail.bsh. This local implementation returns products to be displayed in the category, together with product pricing in an xml document from a 3rd party system. Within categorydetail.bsh, the xml document is then pop into the context and hence is available in the productsummary screen. productsummary.bsh via some help from a java service then picks the correct price to display from the xml document, and all looks good on the category page (prices, ProductCategoryLink etc ...). So all is well up to this point. However when clicking on the ProductCategoryLink, the screen that is displayed (I assume miniproductsummary) my prices are zero. So my real question is how can I get my xml document that contains the pricing into miniproductsummary.bsh via the ProductCategoryLink. Request parameter ?, if so how. Go easy on me please, I am no GUI man. Thanks for your help. Kind regards Grant Edwards <screen name="categorydetail"> <section> <actions> <set field="productsummaryScreen" value="component://ecommerce/widget/CatalogScreens.xml#productsummary"/> <set field="productCategoryLinkScreen" value="component://ecommerce/widget/CatalogScreens.xml#ProductCategoryLink"/ > <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ca tegorydetail.bsh"/> <entity-and entity-name="ProductCategoryLink" list-name="productCategoryLinks" use-cache="true" filter-by-date="true"> <field-map field-name="productCategoryId" env-name="productCategoryId"/> <order-by field-name="sequenceNum"/> </entity-and> </actions> <widgets> <platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl "/></html></platform-specific> </widgets> </section> </screen> No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.5/1359 - Release Date: 4/4/2008 8:23 AM No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.5/1359 - Release Date: 4/4/2008 8:23 AM |
Free forum by Nabble | Edit this page |