Ignore:
Timestamp:
Mar 19, 2019, 2:32:03 PM (3 years ago)
Author:
Nicklas Nordborg
Message:

References #2161: Import data from Excel files

Added support for selecting a specific sheet when importing to the AbstractItemImporter class which means that all batch item importers now should support this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/common/plugin/parse_file.jsp

    r7655 r7656  
    180180      parser.setDefaultNumberFormat(NumberFormatUtil.getNumberFormat(ds, (char)0));
    181181    }
    182    
    183     parser.setInputStream(fileInputStream, excelMode ? sheet : charsetName);
     182    parser.setExcelSheet(sheet);
     183    parser.setInputStream(fileInputStream, charsetName);
    184184    lastLine = parser.parseHeaders();
    185185    dataIsFound = lastLine == FlatFileParser.LineType.DATA || lastLine == FlatFileParser.LineType.DATA_HEADER;
Note: See TracChangeset for help on using the changeset viewer.