Author: jacopoc
Date: Mon Jun 4 08:19:23 2007
New Revision: 544164
URL:
http://svn.apache.org/viewvc?view=rev&rev=544164Log:
Added the softIdentifier to the search fields in the inventory items screen.
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=544164&r1=544163&r2=544164==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/facility/FacilityForms.xml (original)
+++ ofbiz/trunk/applications/product/webapp/facility/facility/FacilityForms.xml Mon Jun 4 08:19:23 2007
@@ -48,10 +48,13 @@
<field name="internalName"><text-find/></field>
<field name="inventoryItemId"><text-find/></field>
<field name="serialNumber"><text-find/></field>
+ <field name="softIdentifier"><text/></field>
<field name="manufacturerPartyId">
<lookup target-form-name="LookupPartyName"/>
</field>
- <field name="submitButton" title="${uiLabelMap.CommonFind}">
+ <!-- the content of the softIdentifier field is converted from hex to int if it starts with "0x";
+ this is a nice example of using JavaScript in a form widget definition -->
+ <field name="submitButton" title="${uiLabelMap.CommonFind}" event="onClick" action="javascript:var field=document.SearchInventoryItemsParams.softIdentifier;var tmp=field.value;if (tmp.substring(0, 2) == '0x') {tmp=parseInt(tmp, 16)};if (!isNaN(tmp)) {field.value=tmp};return true;">
<submit button-type="button"/>
</field>
</form>
@@ -86,6 +89,7 @@
<field name="lotId"><display/></field>
<field name="binNumber"><display/></field>
<field name="serialNumber"><display/></field>
+ <field name="softIdentifier"><display/></field>
<field name="quantityOnHandTotal"><display description="${availableToPromiseTotal} / ${quantityOnHandTotal}"/></field>
<field name="transfer" entry-name="inventoryItemId" widget-style="buttontext">
<hyperlink target="TransferInventoryItem?facilityId=${facilityId}&inventoryItemId=${inventoryItemId}" description="${uiLabelMap.ProductTransfer}"/>