svn commit: r1868140 - /ofbiz/ofbiz-framework/trunk/framework/webtools/widget/ServiceForms.xml

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

svn commit: r1868140 - /ofbiz/ofbiz-framework/trunk/framework/webtools/widget/ServiceForms.xml

jleroux@apache.org
Author: jleroux
Date: Tue Oct  8 15:56:00 2019
New Revision: 1868140

URL: http://svn.apache.org/viewvc?rev=1868140&view=rev
Log:
Improved: Improve the job search view with a better limit and a default sort
(OFBIZ-11241)

Adds a 50 items limit by default instead of 20
Adds a default sort on -runtime to have a look on the lasts jobs executed

Thanks: Carl Demus

Modified:
    ofbiz/ofbiz-framework/trunk/framework/webtools/widget/ServiceForms.xml

Modified: ofbiz/ofbiz-framework/trunk/framework/webtools/widget/ServiceForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/webtools/widget/ServiceForms.xml?rev=1868140&r1=1868139&r2=1868140&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/webtools/widget/ServiceForms.xml (original)
+++ ofbiz/ofbiz-framework/trunk/framework/webtools/widget/ServiceForms.xml Tue Oct  8 15:56:00 2019
@@ -78,12 +78,13 @@ under the License.
     </form>
 
     <form name="ListJobs" type="list" list-name="listIt" paginate-target="FindJob" default-entity-name="JobSandbox" separate-columns="true"
-        odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
+        odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar" view-size="50">
         <actions>
+            <set field="orderBy" default-value="-runTime" from-field="parameters.sortField"/>
             <service service-name="performFind" result-map="result" result-map-list="listIt">
                 <field-map field-name="inputFields" from-field="jobCtx"/>
                 <field-map field-name="entityName" value="JobSandbox"/>
-                <field-map field-name="orderBy" from-field="parameters.sortField"/>
+                <field-map field-name="orderBy" from-field="orderBy"/>
                 <field-map field-name="viewIndex" from-field="viewIndex"/>
                 <field-map field-name="viewSize" from-field="viewSize"/>
             </service>