[ofbiz-framework] branch trunk updated: Improved: Status ID checkbox for Find InventoryItems screen (OFBIZ-11933)

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

[ofbiz-framework] branch trunk updated: Improved: Status ID checkbox for Find InventoryItems screen (OFBIZ-11933)

akashjain
This is an automated email from the ASF dual-hosted git repository.

akashjain pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 8da5da9  Improved: Status ID checkbox for Find InventoryItems screen (OFBIZ-11933)
8da5da9 is described below

commit 8da5da9a28e7ced1441b75ec983ed9f5b508c7a5
Author: Akash Jain <[hidden email]>
AuthorDate: Sat Aug 22 19:27:20 2020 +0530

    Improved: Status ID checkbox for Find InventoryItems screen (OFBIZ-11933)
---
 applications/product/widget/facility/FacilityForms.xml   | 6 +++---
 applications/product/widget/facility/FacilityScreens.xml | 9 +++++++++
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/applications/product/widget/facility/FacilityForms.xml b/applications/product/widget/facility/FacilityForms.xml
index 3a70072..c0b9c09 100644
--- a/applications/product/widget/facility/FacilityForms.xml
+++ b/applications/product/widget/facility/FacilityForms.xml
@@ -59,7 +59,7 @@ under the License.
         <field name="submitButton" title="${uiLabelMap.CommonFind}"><submit button-type="button"/></field>
     </form>
 
-    <form name="SearchInventoryItemsParams" type="single" target="EditFacilityInventoryItems"
+    <form name="SearchInventoryItemsParams" type="single" target="EditFacilityInventoryItems" default-map-name="parameters"
         header-row-style="header-row" default-table-style="basic-table">
         <field name="facilityId">
             <drop-down allow-empty="false">
@@ -73,14 +73,14 @@ under the License.
         <field name="internalName"><text-find/></field>
         <field name="inventoryItemId"><text-find/></field>
         <field name="statusId">
-            <check all-checked="false">
+            <drop-down allow-multiple="true">
                 <entity-options entity-name="StatusItem" key-field-name="statusId">
                     <entity-constraint name="statusTypeId" operator="equals" value="INV_NON_SER_STTS"/>
                 </entity-options>
                 <entity-options entity-name="StatusItem" key-field-name="statusId">
                     <entity-constraint name="statusTypeId" operator="equals" value="INV_SERIALIZED_STTS"/>
                 </entity-options>
-            </check>
+            </drop-down>
         </field>
         <field name="serialNumber"><text-find/></field>
         <field name="softIdentifier"><text/></field>
diff --git a/applications/product/widget/facility/FacilityScreens.xml b/applications/product/widget/facility/FacilityScreens.xml
index 1181e0a..85f154e 100644
--- a/applications/product/widget/facility/FacilityScreens.xml
+++ b/applications/product/widget/facility/FacilityScreens.xml
@@ -330,6 +330,12 @@ under the License.
                 <entity-one entity-name="Facility" value-field="facility"/>
                 <property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
                 <set field="title" from-field="uiLabelMap.PageTitleEditFacilityInventoryItems"/>
+                <set field="asm_multipleSelectForm" value="SearchInventoryItemsParams"/>
+                <set field="asm_asmListItemPercentOfForm" value="110"/>
+                <set field="statusId.asm_multipleSelect" value="SearchInventoryItemsParams_statusId"/>
+                <set field="statusId.asm_sortable" value="true"/>
+                <set field="statusId.asm_title" value=" "/>
+                <set field="asm_listField[]" from-field="statusId"/>
             </actions>
             <widgets>
                 <decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
@@ -346,6 +352,9 @@ under the License.
                                 </container>
                             </decorator-section>
                             <decorator-section name="search-options">
+                                <platform-specific>
+                                    <html><html-template multi-block="true" location="component://common-theme/template/includes/SetMultipleSelectJsList.ftl"/></html>
+                                </platform-specific>
                                 <include-form name="SearchInventoryItemsParams" location="component://product/widget/facility/FacilityForms.xml"/>
                             </decorator-section>
                             <decorator-section name="search-results">