You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2012/10/03 04:30:19 UTC
svn commit: r1393258 -
/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.groovy
Author: adrianc
Date: Wed Oct 3 02:30:19 2012
New Revision: 1393258
URL: http://svn.apache.org/viewvc?rev=1393258&view=rev
Log:
Small improvement to Web Tools Find Values screen - order values by pk.
Modified:
ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.groovy
Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.groovy?rev=1393258&r1=1393257&r2=1393258&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.groovy (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.groovy Wed Oct 3 02:30:19 2012
@@ -174,8 +174,13 @@ if ("true".equals(find)) {
fieldsToSelect.add(functionField)
}
}
-
- resultEli = delegator.find(entityName, condition, null, fieldsToSelect, null, efo);
+ Collection pkNames = FastList.newInstance();
+ Iterator iter = modelEntity.getPksIterator();
+ while (iter != null && iter.hasNext()) {
+ ModelField curField = (ModelField) iter.next();
+ pkNames.add(curField.getName());
+ }
+ resultEli = delegator.find(entityName, condition, null, fieldsToSelect, pkNames, efo);
resultPartialList = resultEli.getPartialList(lowIndex, highIndex - lowIndex + 1);
arraySize = resultEli.getResultsSizeAfterPartialList();