return getExport(queryName, type, new FlattenedCellSetFormatter());
}
byte[] getExport(String queryName, @Nullable String type, ICellSetFormatter formatter) {
if (type != null) {
IQuery query = getIQuery(queryName);
CellSet rs = query.getCellset();
List<SaikuDimensionSelection> filters = new ArrayList<SaikuDimensionSelection>();
if (query.getType().equals(QueryType.QM)) {
filters = getAxisSelection(queryName, "FILTER");
}
if (type.toLowerCase().equals("xls")) {
// TODO - added null parameter for filters - not used anymore
return ExcelExporter.exportExcel(rs, formatter, null);