searchCriteriaVO.setConditionID(String.valueOf(criteriaVO.getConditionID()));
searchCriteriaVO.setValue(criteriaVO.getValue());
searchCriteria[criteriaVO.getOrderID() - 1] = searchCriteriaVO;
}
AdvancedSearchUtil util = new AdvancedSearchUtil();
// See if we should add a row.
String addRow = (String)ruleForm.get("addRow");
if (addRow.equals("true")) {
searchCriteria = util.addRow(searchCriteria);
ruleForm.set("addRow", "false");
}
// see if we should delete a row
String removeRow = (String)ruleForm.get("removeRow");
if (! removeRow.equals("false")) {
searchCriteria = util.removeRow(searchCriteria, removeRow);
ruleForm.set("removeRow", "false");
}
ruleForm.set("searchCriteria", searchCriteria);
}