Author: hansbak
Date: Thu Oct 29 05:15:10 2009 New Revision: 830846 URL: http://svn.apache.org/viewvc?rev=830846&view=rev Log: added example product demo attributes and adapted the form Added: ofbiz/trunk/applications/product/data/ProductDemoData.xml - copied, changed from r830110, ofbiz/trunk/applications/product/data/ProductUserDemoData.xml Removed: ofbiz/trunk/applications/product/data/ProductUserDemoData.xml Modified: ofbiz/trunk/applications/product/ofbiz-component.xml ofbiz/trunk/applications/product/widget/catalog/ProductForms.xml Copied: ofbiz/trunk/applications/product/data/ProductDemoData.xml (from r830110, ofbiz/trunk/applications/product/data/ProductUserDemoData.xml) URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/data/ProductDemoData.xml?p2=ofbiz/trunk/applications/product/data/ProductDemoData.xml&p1=ofbiz/trunk/applications/product/data/ProductUserDemoData.xml&r1=830110&r2=830846&rev=830846&view=diff ============================================================================== --- ofbiz/trunk/applications/product/data/ProductUserDemoData.xml (original) +++ ofbiz/trunk/applications/product/data/ProductDemoData.xml Thu Oct 29 05:15:10 2009 @@ -22,4 +22,16 @@ <!-- Limited user demo --> <UserLoginSecurityGroup groupId="CATALOGADMIN_LTD" userLoginId="ltdadmin" fromDate="2001-01-01 12:00:00.0"/> <UserLoginSecurityGroup groupId="CATALOGADMIN_LTD" userLoginId="ltdadmin1" fromDate="2001-01-01 12:00:00.0"/> + + + <!-- example product attributes --> + <ProductTypeAttr productTypeId="FINISHED_GOOD" attrName="Pictures Taken?"/> + <ProductTypeAttr productTypeId="FINISHED_GOOD" attrName="Pictures Uploaded?"/> + <ProductTypeAttr productTypeId="FINISHED_GOOD" attrName="Qual. Assurance"/> + <ProductTypeAttr productTypeId="FINISHED_GOOD" attrName="Descriptions ok?"/> + <ProductTypeAttr productTypeId="FINISHED_GOOD" attrName="Pricing Complete?"/> + <ProductTypeAttr productTypeId="FINISHED_GOOD" attrName="Listing Approved?"/> + + + </entity-engine-xml> Modified: ofbiz/trunk/applications/product/ofbiz-component.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/ofbiz-component.xml?rev=830846&r1=830845&r2=830846&view=diff ============================================================================== --- ofbiz/trunk/applications/product/ofbiz-component.xml (original) +++ ofbiz/trunk/applications/product/ofbiz-component.xml Thu Oct 29 05:15:10 2009 @@ -36,7 +36,7 @@ <entity-resource type="data" reader-name="seed" loader="main" location="data/ProductHelpData.xml"/> <entity-resource type="data" reader-name="seed" loader="main" location="data/ShipmentTypeData.xml"/> <entity-resource type="data" reader-name="seed" loader="main" location="data/ProductSecurityData.xml"/> - <entity-resource type="data" reader-name="demo" loader="main" location="data/ProductUserDemoData.xml"/> + <entity-resource type="data" reader-name="demo" loader="main" location="data/ProductDemoData.xml"/> <entity-resource type="data" reader-name="seed" loader="main" location="data/ApiSchemaDhl.xml"/> <entity-resource type="data" reader-name="seed" loader="main" location="data/DimensionTypeData.xml"/> <entity-resource type="data" reader-name="seed" loader="main" location="data/ProductPortletData.xml"/> Modified: ofbiz/trunk/applications/product/widget/catalog/ProductForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/ProductForms.xml?rev=830846&r1=830845&r2=830846&view=diff ============================================================================== --- ofbiz/trunk/applications/product/widget/catalog/ProductForms.xml (original) +++ ofbiz/trunk/applications/product/widget/catalog/ProductForms.xml Thu Oct 29 05:15:10 2009 @@ -1820,7 +1820,13 @@ header-row-style="header-row" default-table-style="basic-table"> <auto-fields-service service-name="createProductAttribute"/> <field name="productId"><hidden/></field> - <field name="attrName"></field> + <field name="attrName"> + <drop-down> + <entity-options description="${attrName}" entity-name="ProductTypeAttr"> + <entity-constraint name="productTypeId" operator="equals" value="${product.productTypeId}"/> + </entity-options> + </drop-down> + </field> <field name="submitButton" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field> </form> <form name="UpdateProductAttribute" type="list" target="updateProductAttribute" title="" list-name="productAttributes" |
Free forum by Nabble | Edit this page |