} catch (CreateException e) {
logger.error("[execute] Exception thrown.", e);
throw new ServletException(e);
}
valueList.setDataSource(dataSource);
ValueListVO listObject = valueList.getValueList(individualId, listParameters);
session.setAttribute("ticketPieChartParams", listParameters);
session.setAttribute("ticketBarChartParams", listParameters);
ArrayList buttonList = new ArrayList();
// For the searchBar
String moduleID = (String)moduleList.get("Ticket");
ValueListDisplay displayParameters = null;
if (actionType != null && actionType.equals("lookup")) {
// When we select the lookup then we should add the Select button to the
// valueList
buttonList.add(new Button("Select", "select", "lu_selectList('Ticket');", false));
buttonList.add(new Button("New Ticket", "new", "c_newButton('Ticket', " + moduleID + ")", false));
displayParameters = new ValueListDisplay(buttonList, false, false);
displayParameters.setRadio(true);
listObject.setLookup(true);
listObject.setLookupType(actionType);
request.setAttribute("hideMarketingList", new Boolean(true));
request.setAttribute("dynamicTitle", "Ticket");
request.setAttribute("lookupType", "Ticket");
} else {
buttonList.add(new Button("View", "view", "vl_viewList();", false));
buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));
displayParameters = new ValueListDisplay(buttonList, true, true);
}
displayParameters.setSortable(true);
displayParameters.setPagingBar(true);
displayParameters.setLink(true);
listObject.setDisplay(displayParameters);
// Stick the list on the request and then the custom list tag will handle
// it.
if (logger.isDebugEnabled()) {
long debugTime = (System.currentTimeMillis() - start);
logger.debug("[execute] End to End: " + debugTime + " ms");
listObject.getParameters().setDebugTime(debugTime);
}
request.setAttribute("valueList", listObject);
request.setAttribute("listScope", listScope);
request.setAttribute(SupportConstantKeys.TYPEOFSUBMODULE, "Ticket");
request.setAttribute("moduleId", moduleID);