From fa9c5f617ac5fd00a08012ca0071863db1242ea1 Mon Sep 17 00:00:00 2001 From: Jacopo Cappellato Date: Sun, 24 Jun 2007 05:36:49 +0000 Subject: [PATCH] This is a poc for the new code and features inplemented in rev. 550168. I've modified the list form in the Catalog--> Product --> Locations screen to show the new features now available in form widgets: 1) each item in the list is split into two different rows (position 1 and 2): position 1 is for the facility name, position 2 is for all the remaining fields, including input/hidden/buttons that will go in the form 2) since the fields are derived from a service using the auto-fields-service, I've used the new attribute 'default-position' to set for them the position2 3) we want to show the field at position 1 (facility name) only when facility is different from the previous record: I've used a row-action to set the boolean variable (the action uses the new 'previousItem' map that is now available in the context and contains the data of the previous item in the list) and a use-when attribute git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@550169 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/catalog/product/ProductForms.xml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/applications/product/webapp/catalog/product/ProductForms.xml b/applications/product/webapp/catalog/product/ProductForms.xml index 26d5d04c95..da01f0f915 100644 --- a/applications/product/webapp/catalog/product/ProductForms.xml +++ b/applications/product/webapp/catalog/product/ProductForms.xml @@ -273,7 +273,7 @@ under the License. - + @@ -1334,17 +1334,19 @@ under the License. + - - - - + + + + - + + - - + +