Changeset 1799
- Timestamp:
- May 2, 2011, 12:38:14 PM (12 years ago)
- Location:
- trunk/grails-app/controllers/dbnp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/query/AdvancedQueryController.groovy
r1798 r1799 553 553 module: "gscf", 554 554 name:"excel", 555 description: "Export as Excel",555 description: "Export as CSV", 556 556 url: createLink( controller: "study", action: "exportToExcel", params: [ 'format': 'list', 'ids' : ids ] ), 557 557 submitUrl: createLink( controller: "study", action: "exportToExcel", params: [ 'format': 'list' ] ), … … 569 569 module: "gscf", 570 570 name:"excel", 571 description: "Export as Excel",571 description: "Export as CSV", 572 572 url: createLink( controller: "assay", action: "exportToExcel", params: [ 'format': 'list', 'ids' : ids ] ), 573 573 submitUrl: createLink( controller: "assay", action: "exportToExcel", params: [ 'format': 'list' ] ), -
trunk/grails-app/controllers/dbnp/studycapturing/AssayController.groovy
r1798 r1799 292 292 return; 293 293 294 // If only 1 assay is asked for, don't bother with merging multiple assays.295 // In that case just use the export method to export one assay per sheet296 if( assays.size() == 1 )297 return exportToExcelAsSheets( params );298 299 294 // Send headers to the browser so the user can download the file 300 def filename = 'export. xlsx'295 def filename = 'export.csv' 301 296 response.setHeader("Content-disposition", "attachment;filename=\"${filename}\"") 302 297 response.setContentType("application/octet-stream") … … 326 321 327 322 def rowData = assayService.convertColumnToRowStructure(mergedColumnWiseData) 328 assayService.exportRowWiseDataTo ExcelFile( rowData, response.getOutputStream() )323 assayService.exportRowWiseDataToCSVFile( rowData, response.getOutputStream() ) 329 324 330 325 response.outputStream.flush()
Note: See TracChangeset
for help on using the changeset viewer.