Author: jleroux
Date: Sun Mar 18 19:54:38 2012
New Revision: 1302210
URL:
http://svn.apache.org/viewvc?rev=1302210&view=revLog:
Improves the LookupBulkAddProducts form by disabling the amount field when Product.requireAmount field is not "Y"
No needs to use return there. I also tried a simple UEL expression (ie removing groovy interpretation by removing "groovy:"), it did not work
This really shows that, at least OOTB, only one possible syntax should be used, else it's only confusing more!
Modified:
ofbiz/trunk/applications/order/widget/ordermgr/OrderEntryForms.xml
Modified: ofbiz/trunk/applications/order/widget/ordermgr/OrderEntryForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/widget/ordermgr/OrderEntryForms.xml?rev=1302210&r1=1302209&r2=1302210&view=diff==============================================================================
--- ofbiz/trunk/applications/order/widget/ordermgr/OrderEntryForms.xml (original)
+++ ofbiz/trunk/applications/order/widget/ordermgr/OrderEntryForms.xml Sun Mar 18 19:54:38 2012
@@ -166,10 +166,10 @@ under the License.
<field name="quantity" title="${uiLabelMap.OrderQuantity}">
<text size="5" maxlength="10"/>
</field>
- <field use-when="${groovy: return 'Y'.equals(context.hasAmount)}" name="amount" title="${uiLabelMap.OrderAmount}" >
+ <field use-when="${groovy: 'Y'.equals(context.hasAmount)}" name="amount" title="${uiLabelMap.OrderAmount}" >
<text size="5" maxlength="10"/>
</field>
- <field use-when="${groovy: return 'N'.equals(context.hasAmount)}" name="amount" title="${uiLabelMap.OrderAmount}" widget-style="disabled">
+ <field use-when="${groovy: 'N'.equals(context.hasAmount)}" name="amount" title="${uiLabelMap.OrderAmount}" widget-style="disabled">
<text size="5" maxlength="10" disabled="true"/>
</field>
<field name="itemDesiredDeliveryDate" title="${uiLabelMap.OrderDesiredDeliveryDate}">