moduleId = reportResults.getModuleId();
ArrayList columnHeaders = reportResults.getTitles();
ArrayList columns = new ArrayList();
ValueListParameters parameters = new ValueListParameters(0, reportResults.getResults().size(), 1);
for (int i = 0; i < columnHeaders.size(); i++) {
columns.add(new FieldDescriptor((String)columnHeaders.get(i), i+1, false, ""));
}
parameters.setColumns(columns);
// results is an arraylist of arraylists, it needs to be converted to an arraylist of ValueListRows
ArrayList results = reportResults.getResults();
ArrayList list = new ArrayList();