-1
Hi, I made some reports with the DynamicReports
http://www.dynamicreports.org/, when searching about how to make graphs I found several examples, but none with the data (shown in the graph) being brought from a Banco de Dados
.
In my reports as selected on the screen I add the columns (as code below):
if (jRadioCodigo.isSelected() == true) {
report.columns(Columns.column("Código", "id", DataTypes.integerType()));
}
My query
is also changed according to the selections on the screen (as code below):
if (jComboBoxPessoa.getSelectedIndex() != 0) {
queryNome = "and pes.nomePessoa= '" + jComboBoxPessoa.getSelectedItem().toString() + "'";
}
String query = "select pes.nomePessoa, pes.idPessoa from pessoa pes "
String queryFinal=query + queryNome
The idea is to make the chart similarly in the DynamicReports
, or even in JasperReports
if it is possible.
Does anyone have any link, example that can help?