Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Changeset 1851

Show
Ignore:
Timestamp:
06/05/07 05:15:06 (1 year ago)
Author:
jmiranda
Message:

Implementing support for user-defined separators within the data export utility - #401

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/reporting/src/api/org/openmrs/reporting/export/DataExportUtil.java

    r1692 r1851  
    3737        } 
    3838 
     39         
     40        /** 
     41         * Generates a data export file given a data export (columns) and patient set (rows).   
     42         *  
     43         * @param dataExport 
     44         * @param patientSet 
     45         * @param separator 
     46         * @throws Exception 
     47         */ 
     48        public static void generateExport(DataExportReportObject dataExport, PatientSet patientSet, String separator) throws Exception { 
     49                // Set up functions used in the report ( $!{fn:...} ) 
     50                DataExportFunctions functions = new DataExportFunctions(); 
     51                functions.setSeparator(separator); 
     52                generateExport(dataExport, patientSet, functions); 
     53        } 
     54         
    3955        /** 
    4056         *  
     
    4864                generateExport(dataExport, patientSet, functions); 
    4965        } 
    50  
    51          
    52         /** 
    53          *  
    54          * @param dataExport 
    55          * @param patientSet 
    56          * @param separator 
    57          * @throws Exception 
    58          */ 
    59         public static void generateExport(DataExportReportObject dataExport, PatientSet patientSet, String separator) throws Exception { 
    60                 DataExportFunctions functions = new DataExportFunctions(); 
    61                 functions.setSeparator(separator); 
    62                 generateExport(dataExport, patientSet, functions); 
    63         } 
    64  
    6566         
    6667        /**