Page 1 of 1

I have a problem with Data Source in Java

Posted: Thu Apr 10, 2014 9:42 am
by haochen.Ye
Hi,
Can I use a Datatable as a Data Source in Reports.Fx?
like this:

Code: Select all

DataTable table = this.LoadCSV();
report.RegData("CSVData", table);
If it can do, would you give some example codes?

Re: I have a problem with Data Source in Java

Posted: Thu Apr 10, 2014 12:21 pm
by HighAley
Hello.

Here is code that you could use:

Code: Select all

report.getDataSources().get(0).setDataTable(LoadCSV());// build dataTable from csv file.
Thank you.