location for the auto-fields-service

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

location for the auto-fields-service

Kane Lo
I have created a ProductPoint Service, and mostly is copied from UpdateProductPrice. However I have encounter a problem, when I use productPoint in the element auto-fields-service. It returns me such error,
org.ofbiz.base.util.GeneralException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.ClassCastException: java.lang.Double (java.lang.Double)

If I just change it to ProductPrice for the map-name like below. Then I get a result. May I know actually where is the map-name map to?
Under ProductForms.xml
    <form name="UpdateProductPoint" type="list" target="updateProductPoint" title="" list-name="productPoints"
        default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext">
        <auto-fields-service service-name="updateProductPoint" map-name="productPrice"/>
        <field name="productId"><hidden/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFromDateTime}" widget-style="tabletext"><display/></field>

        <field name="lastUpdatedByText" title="${uiLabelMap.ProductLastModifiedBy}:" widget-style="tabletext">
            <display description="[${lastModifiedByUserLogin}] ${uiLabelMap.CommonOn} ${lastModifiedDate}" also-hidden="false"/>
        </field>
        <field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
        <field name="deleteLink" title="" widget-style="buttontext">
            <hyperlink target="deleteProductPoint?productId=${productId}&amp;fromDate=${fromDate}"
                description="${uiLabelMap.CommonDelete}" also-hidden="false"/>
        </field>
    </form>
Reply | Threaded
Open this post in threaded view
|

Re: location for the auto-fields-service

Kane Lo
I think I have solved the problem. I have called a wrong field name in one
of those forms.

----- Original Message -----
From: "Kane Lo" <[hidden email]>
To: <[hidden email]>
Sent: Thursday, May 17, 2007 6:51 PM
Subject: location for the auto-fields-service


I have created a ProductPoint Service, and mostly is copied from
UpdateProductPrice. However I have encounter a problem, when I use
productPoint in the element auto-fields-service. It returns me such error,
org.ofbiz.base.util.GeneralException: Error rendering screen
[component://common/widget/CommonScreens.xml#GlobalDecorator]:
java.lang.ClassCastException: java.lang.Double (java.lang.Double)

If I just change it to ProductPrice for the map-name like below. Then I get
a result. May I know actually where is the map-name map to?
Under ProductForms.xml
    <form name="UpdateProductPoint" type="list" target="updateProductPoint"
title="" list-name="productPoints"
        default-title-style="tableheadtext" default-widget-style="inputBox"
default-tooltip-style="tabletext">
        <auto-fields-service service-name="updateProductPoint"
map-name="productPrice"/>
        <field name="productId"><hidden/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFromDateTime}"
widget-style="tabletext"><display/></field>

        <field name="lastUpdatedByText"
title="${uiLabelMap.ProductLastModifiedBy}:" widget-style="tabletext">
            <display description="[${lastModifiedByUserLogin}]
${uiLabelMap.CommonOn} ${lastModifiedDate}" also-hidden="false"/>
        </field>
        <field name="submitButton" title="${uiLabelMap.CommonUpdate}"
widget-style="smallSubmit"><submit button-type="button"/></field>
        <field name="deleteLink" title="" widget-style="buttontext">
            <hyperlink
target="deleteProductPoint?productId=${productId}&amp;fromDate=${fromDate}"
                description="${uiLabelMap.CommonDelete}"
also-hidden="false"/>
        </field>
    </form>