Author: jacopoc
Date: Sat Mar 3 03:24:29 2007
New Revision: 514128
URL:
http://svn.apache.org/viewvc?view=rev&rev=514128Log:
This is a PoC about how action and event attributes can be used in multi form to trigger the auto selection of the record when the user enters data; however it is still not optimal because I have hardcoded the _o_ suffix index separator.
Is there a variable in the context of the form that we can use to get it?
Modified:
ofbiz/trunk/applications/product/webapp/facility/facility/FacilityForms.xml
Modified: ofbiz/trunk/applications/product/webapp/facility/facility/FacilityForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/facility/FacilityForms.xml?view=diff&rev=514128&r1=514127&r2=514128==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/facility/FacilityForms.xml (original)
+++ ofbiz/trunk/applications/product/webapp/facility/facility/FacilityForms.xml Sat Mar 3 03:24:29 2007
@@ -227,8 +227,8 @@
<entity-options entity-name="VarianceReason" description="${description}"/>
</drop-down>
</field>
- <field name="availableToPromiseVar" title="${uiLabelMap.ProductProductATPVar}"><text size="6"/></field>
- <field name="quantityOnHandVar" title="${uiLabelMap.ProductProductQOHVar}"><text size="6"/></field>
+ <field name="availableToPromiseVar" title="${uiLabelMap.ProductProductATPVar}" event="onChange" action="document.ListPhysicalInventory._rowSubmit_o_${itemIndex}.checked = true"><text size="6"/></field>
+ <field name="quantityOnHandVar" title="${uiLabelMap.ProductProductQOHVar}" event="onChange" action="document.ListPhysicalInventory._rowSubmit_o_${itemIndex}.checked = true"><text size="6"/></field>
<field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><check/></field>
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit">
<submit/>