Report jasper does not update data [closed]

1

Good evening guys, I'm having a rather frustrating problem. I have an employee report on the system that works fine. Bring the data all correctly. However, when you register a new employee and generate the report again, it does not update, it shows the previous data. Has anyone gone through this?

Below is the snippet of the code where I call:

  public void relProdutoJASPER(List<FuncionarioEntity> p) {
    try {
        InputStream input = getClass().getResourceAsStream("/br/com/portal/jasper/relFuncionario.jasper");
        Map parameters = new HashMap();
        JRBeanCollectionDataSource jb = new JRBeanCollectionDataSource(p);
        JasperPrint jp = JasperFillManager.fillReport(input, parameters, jb);
        JasperViewer js = new JasperViewer(jp, false);
        js.setExtendedState(MAXIMIZED_BOTH);
        js.setTitle("Relatório de Funcionários");
        js.setVisible(true);
    } catch (Exception e) {
        e.printStackTrace();
    }
}
    
asked by anonymous 08.09.2014 / 00:20

0 answers