svn commit: r985745 - in /ofbiz/trunk/applications/product: script/org/ofbiz/product/category/CategoryServices.xml servicedef/services_view.xml

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

svn commit: r985745 - in /ofbiz/trunk/applications/product: script/org/ofbiz/product/category/CategoryServices.xml servicedef/services_view.xml

jleroux@apache.org
Author: jleroux
Date: Sun Aug 15 20:25:01 2010
New Revision: 985745

URL: http://svn.apache.org/viewvc?rev=985745&view=rev
Log:
Uses a better syntax w/out any fixed naming conventions. Thanks to Andrew. More to come soon in Example component.

Modified:
    ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml
    ofbiz/trunk/applications/product/servicedef/services_view.xml

Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml?rev=985745&r1=985744&r2=985745&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml Sun Aug 15 20:25:01 2010
@@ -843,7 +843,7 @@ under the License.
 
     <!-- To help dynamically populate a products dropdown given a product category id from a change in another dropdown, possibly sorted on sequenceNum -->    
     <simple-method method-name="getAssociatedProductsList" short-description="Set the product options for selected product category" login-required="false">
-        <set field="parameters.categoryId" from-field="parameters.mainId"/>
+        <set field="parameters.categoryId" from-field="parameters.productCategoryId"/>
         <set-service-fields service-name="getProductCategoryMembers" map="parameters" to-map="getProductCategoryMembersMap"/>        
         <call-service service-name="getProductCategoryMembers" in-map-name="getProductCategoryMembersMap">
             <result-to-field result-name="categoryMembers" field="productsList"/>
@@ -856,13 +856,13 @@ under the License.
                 <field-map field-name="productId" from-field="productMember.productId"/>
             </entity-one>
             <set field="productName" value="${product.internalName}: ${product.productId}"/>
-            <field-to-list list="valuesList" field="productName"/>
+            <field-to-list list="products" field="productName"/>
         </iterate>
-        <if-empty field="valuesList">
+        <if-empty field="products">
             <property-to-field resource="ProductUiLabels" property="ProductNoProducts" field="noOption"/>
-            <field-to-list list="valuesList" field="noOption"/>
+            <field-to-list list="products" field="noOption"/>
         </if-empty>
-        <field-to-result field="valuesList"/>
+        <field-to-result field="products"/>
     </simple-method>
     
 </simple-methods>

Modified: ofbiz/trunk/applications/product/servicedef/services_view.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/servicedef/services_view.xml?rev=985745&r1=985744&r2=985745&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/servicedef/services_view.xml (original)
+++ ofbiz/trunk/applications/product/servicedef/services_view.xml Sun Aug 15 20:25:01 2010
@@ -119,8 +119,8 @@ under the License.
     
     <service name="getAssociatedProductsList" engine="simple" auth="false"
         location="component://product/script/org/ofbiz/product/category/CategoryServices.xml" invoke="getAssociatedProductsList">
-        <attribute name="mainId" mode="IN" type="String" optional="false"/>
-        <attribute name="valuesList" mode="OUT" type="java.util.List"/>
+        <attribute name="productCategoryId" mode="IN" type="String" optional="false"/>
+        <attribute name="products" mode="OUT" type="java.util.List"/>
     </service>
     
     <service name="getPreviousNextProducts" engine="java"