Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem set dateformat Exporter #14

Open
SopaSeca opened this issue Jan 11, 2016 · 0 comments
Open

Problem set dateformat Exporter #14

SopaSeca opened this issue Jan 11, 2016 · 0 comments

Comments

@SopaSeca
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant