Problem generating report between dates

3

I have a DATETIME field with a date and time: 2015-08-06 08:50:28 . I'm trying to generate a report by passing two parameters, Data_Inicial and Data_Final so I can get all the bank dates that are in that period.

The condition is this way in IReport :

WHERE
     tbl_suspensao.'status' = 'Finalizado'
 AND tbl_suspensao.'data_inicio' BETWEEN  $P{Data_Inicio} AND $P{Data_Fim}

These two parameters are of type: Date/Time of java.sql.Time . But when I enter the parameters and give a preview the message "The document does not have pages" appears. Can anyone help?

    
asked by anonymous 06.08.2015 / 14:39

1 answer

0

The solution to the problem was to change the type of the two parameters to java.util.Date before they were as java.sql.Time

    
06.08.2015 / 15:23