-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Describe the bug
When exporting a CSV from a Grid we receive a java.lang.ArrayStoreException: null. There is no other stacktrace available
Expected behavior
CSV should be work like Excel, Word, PDF which are working fine.
Minimal reproducible example
GridExporter<ItemRecord> exporter = GridExporter.createFor(grid); exporter.setExportColumn(grid.getColumnByKey("Pos"), true); exporter.setExportColumn(grid.getColumnByKey("Artnr"), true); exporter.setExportColumn(grid.getColumnByKey("Artikelbezeichnung"), true); exporter.setExportColumn(grid.getColumnByKey("Menge"), true); exporter.setExportColumn(grid.getColumnByKey("Preis"), true); exporter.setExportColumn(grid.getColumnByKey("Status"), false); HashMap<String, String> placeholders = new HashMap<>(); placeholders.put("${date}", new SimpleDateFormat().format(Calendar.getInstance().getTime())); exporter.setAdditionalPlaceHolders(placeholders); exporter.setTitle("Tabelle"); exporter.setFileName("Tabelle" + new SimpleDateFormat("yyyyddMM").format(Calendar.getInstance().getTime()));
Add-on Version
2.5.1
Vaadin Version
24.6.7
Additional information
The Type in List are records. Maybe this is a problem? But Word etc works with that setup
Metadata
Metadata
Assignees
Labels
Type
Projects
Status