You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a problem with setting the setting of the dateformat of the exporter.
The dateformat is used in the fileBuilder but when you initialise the exporter with the data container the filebuilder is created and the method 'setDateFormat' does not update this filebuilder, thus this dateformat is not used.
ex.
This will not work:
excelExporter = new ExcelExporter(table.getContainerDataSource(), table.getContainerDataSource().getContainerPropertyIds().toArray());
excelExporter.setDateFormat("dd-MM-yyyy");
This works:
excelExporter = new ExcelExporter();
excelExporter.setDateFormat("dd-MM-yyyy");
excelExporter.setContainerToBeExported(table.getContainerDataSource());// here the fileBuilder is created and the dateformat of this builder is set!!!
excelExporter.setVisibleColumns(table.getContainerDataSource().getContainerPropertyIds().toArray());
Kind regards,
Erik
The text was updated successfully, but these errors were encountered:
There is a problem with setting the setting of the dateformat of the exporter.
The dateformat is used in the fileBuilder but when you initialise the exporter with the data container the filebuilder is created and the method 'setDateFormat' does not update this filebuilder, thus this dateformat is not used.
ex.
This will not work:
excelExporter = new ExcelExporter(table.getContainerDataSource(), table.getContainerDataSource().getContainerPropertyIds().toArray());
excelExporter.setDateFormat("dd-MM-yyyy");
This works:
excelExporter = new ExcelExporter();
excelExporter.setDateFormat("dd-MM-yyyy");
excelExporter.setContainerToBeExported(table.getContainerDataSource());// here the fileBuilder is created and the dateformat of this builder is set!!!
excelExporter.setVisibleColumns(table.getContainerDataSource().getContainerPropertyIds().toArray());
Kind regards,
Erik
The text was updated successfully, but these errors were encountered: