screen name="categorydetail"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

screen name="categorydetail"

Grant Edwards-2
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>