Ignore:
Timestamp:
May 10, 2011, 3:44:15 PM (9 years ago)
Author:
s.h.sikkema@…
Message:

Clarified error messages related to unreachable module; added functionality to export numbers using comma as decimal separator and made this the default for european csv style export

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/AssayController.groovy

    r1828 r1830  
    217217
    218218        // process requested output file type
    219         def outputDelimiter, outputFileExtension
     219        def outputDelimiter, outputFileExtension, locale = java.util.Locale.US
    220220
    221221        switch(session.exportFileType) {
     
    227227                outputDelimiter = ';'
    228228                outputFileExtension = 'csv'
     229                locale = java.util.Locale.GERMAN // force use of comma as decimal separator
    229230                break
    230231            default: // Tab delimited with .txt extension
     
    238239                try {
    239240
    240                         // assayService.exportRowWiseDataToExcelFile(session.rowData, response.outputStream)
    241                         assayService.exportRowWiseDataToCSVFile(session.rowData, response.outputStream, outputDelimiter)
     241                        assayService.exportRowWiseDataToCSVFile(session.rowData, response.outputStream, outputDelimiter, locale)
    242242
    243243                        // clear the data from the session
Note: See TracChangeset for help on using the changeset viewer.