More cleanups of now deprecated constructors and what what
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660840 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -32,13 +32,13 @@ delegator = request.getAttribute("delegator");
|
||||
andExprs = FastList.newInstance();
|
||||
fieldValue = request.getParameter("exampleFeatureId");
|
||||
if (UtilValidate.isNotEmpty(fieldValue)) {
|
||||
andExprs.add(new EntityExpr(new EntityFunction.UPPER(new EntityFieldValue("exampleFeatureId")),
|
||||
andExprs.add(EntityCondition.makeCondition(EntityFunction.UPPER(EntityFieldValue.makeFieldValue("exampleFeatureId")),
|
||||
EntityOperator.LIKE, "%" + fieldValue.toUpperCase() + "%"));
|
||||
}
|
||||
|
||||
List autocompleteOptions = null;
|
||||
if (andExprs.size() > 0) {
|
||||
entityConditionList = new EntityConditionList(andExprs, EntityOperator.AND);
|
||||
entityConditionList = EntityCondition.makeCondition(andExprs, EntityOperator.AND);
|
||||
autocompleteOptions = delegator.findList("ExampleFeature", entityConditionList, new TreeSet(UtilMisc.toList("exampleFeatureId", "description")), UtilMisc.toList("-exampleFeatureId"), null, false);
|
||||
//context.put("autocompleteOptions", autocompleteOptions);
|
||||
request.setAttribute("autocompleteOptions", autocompleteOptions);
|
||||
|
||||
Reference in New Issue
Block a user