ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adri...@apache.org
Subject svn commit: r670676 - in /ofbiz/trunk: framework/widget/config/widget.properties specialpurpose/assetmaint/widget/AssetmaintScreens.xml
Date Mon, 23 Jun 2008 17:17:10 GMT
Author: adrianc
Date: Mon Jun 23 10:17:09 2008
New Revision: 670676

URL: http://svn.apache.org/viewvc?rev=670676&view=rev
Log:
Added a widget.properties property to control the display of the search result list in the
Find screen. Also added an example in the Asset Maintenance component.

Modified:
    ofbiz/trunk/framework/widget/config/widget.properties
    ofbiz/trunk/specialpurpose/assetmaint/widget/AssetmaintScreens.xml

Modified: ofbiz/trunk/framework/widget/config/widget.properties
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/config/widget.properties?rev=670676&r1=670675&r2=670676&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/config/widget.properties (original)
+++ ofbiz/trunk/framework/widget/config/widget.properties Mon Jun 23 10:17:09 2008
@@ -25,3 +25,9 @@
 
 # Default number of items to be displayed per page in a list form
 widget.form.defaultViewSize=10
+
+# Controls the initial results display in Find screens. If set to Y, the
+# search result list will be populated when the Find screen first appears.
+# If set to N, the search result list will be empty when the Find screen
+# first appears.
+widget.findscreen.initial.results=N

Modified: ofbiz/trunk/specialpurpose/assetmaint/widget/AssetmaintScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/widget/AssetmaintScreens.xml?rev=670676&r1=670675&r2=670676&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/assetmaint/widget/AssetmaintScreens.xml (original)
+++ ofbiz/trunk/specialpurpose/assetmaint/widget/AssetmaintScreens.xml Mon Jun 23 10:17:09
2008
@@ -50,7 +50,8 @@
             <actions>
                 <set field="headerItem" value="fixedAssetMaints"/>
                 <set field="titleProperty" value="PageTitleFindFixedAssetMaints"/>
-                <set field="noConditionFind" value="Y"/>
+                <property-to-field field="initialResultsProp" resource="widget" property="widget.findscreen.initial.results"/>
+                <set field="noConditionFind" from-field="parameters.noConditionFind" default-value="${initialResultsProp}"></set>
             </actions>
             <widgets>
                 <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">



Mime
View raw message