Examples of runReport()


Examples of com.centraview.report.builder.ReportBuilder.runReport()

       }

      }

      if (reportbuilder != null) {
        resultVO.setResults(reportbuilder.runReport());
        reportbuilder.closeConnection();
      }

      // this.debugStandardReport(resultVO);
View Full Code Here

Examples of com.cfinkel.reports.ReportSessionInfo.runReport()

                        response.sendRedirect(request.getContextPath() + request.getServletPath());
                        return;
                    }

                    if ((request.getParameter(ParameterNames.run) != null) || report.getAllInputs().size() == 0) {
                        Map<String, List> reportData = reportSessionInfo.runReport(request.getParameterMap());
                        request.setAttribute(AttributeNames.reportData,reportData);
                    } else if (reportSessionInfo.isReportWasRunAndDataWasNotCleared()) {
                        Map<String, List> reportData = reportSessionInfo.runOnlyForNonCachedData();
                        request.setAttribute(AttributeNames.reportData,reportData);
                    }
View Full Code Here

Examples of com.commander4j.db.JDBUserReport.runReport()

          {
            reportid.setParamFromDate(JUtility.getTimestampFromDate(domDateFrom.getDate()));
            reportid.setParamToDate(JUtility.getTimestampFromDate(domDateTo.getDate()));
          }
          label4j_statusBar.setText("Please wait....");
          if (reportid.runReport() == false)
          {
            JUtility.errorBeep();
            label4j_statusBar.setText(reportid.getErrorMessage());
            JOptionPane.showMessageDialog(Common.mainForm, reportid.getErrorMessage(), "Error", JOptionPane.ERROR_MESSAGE);
          } else
View Full Code Here

Examples of com.commander4j.db.JDBUserReport.runReport()

          {
            reportid.setParamFromDate(JUtility.getTimestampFromDate(domDateFrom.getDate()));
            reportid.setParamToDate(JUtility.getTimestampFromDate(domDateTo.getDate()));
          }
          label4j_statusBar.setText("Please wait....");
          if (reportid.runReport() == false)
          {
            JUtility.errorBeep();
            label4j_statusBar.setText(reportid.getErrorMessage());
            JOptionPane.showMessageDialog(Common.mainForm, reportid.getErrorMessage(), lang.get("err_Error"), JOptionPane.ERROR_MESSAGE,Common.icon_confirm);
          } else
View Full Code Here

Examples of com.haulmont.yarg.reporting.Reporting.runReport()

            XmlReader xmlReader = new DefaultXmlReader();
            Report report = xmlReader.parseXml(FileUtils.readFileToString(new File(cmd.getOptionValue(REPORT_PATH))));
            Map<String, Object> params = parseReportParams(cmd, report);

            reporting.runReport(new RunParams(report)
                    .templateCode(templateCode)
                    .params(params),
                    new FileOutputStream(cmd.getOptionValue(OUTPUT_PATH)));
            if (doExitWhenFinished) {
                System.exit(0);
View Full Code Here

Examples of com.haulmont.yarg.reporting.Reporting.runReport()

        System.out.println();

        Reporting reporting = new Reporting();
        reporting.setFormatterFactory(new DefaultFormatterFactory());
        reporting.setLoaderFactory(new DefaultLoaderFactory().setGroovyDataLoader(new GroovyDataLoader(new DefaultScriptingImpl())));
        reporting.runReport(new RunParams(report1));
        reporting.runReport(new RunParams(report2));
    }

    private Report createReport() throws IOException {
        ReportBuilder report = new ReportBuilder()
View Full Code Here

Examples of com.haulmont.yarg.reporting.Reporting.runReport()

        Reporting reporting = new Reporting();
        reporting.setFormatterFactory(new DefaultFormatterFactory());
        reporting.setLoaderFactory(new DefaultLoaderFactory().setGroovyDataLoader(new GroovyDataLoader(new DefaultScriptingImpl())));
        reporting.runReport(new RunParams(report1));
        reporting.runReport(new RunParams(report2));
    }

    private Report createReport() throws IOException {
        ReportBuilder report = new ReportBuilder()
                .band(new BandBuilder()
View Full Code Here

Examples of com.haulmont.yarg.reporting.Reporting.runReport()

        Reporting reporting = new Reporting();
        reporting.setFormatterFactory(new DefaultFormatterFactory());
        reporting.setLoaderFactory(new DefaultLoaderFactory().setSqlDataLoader(new PropertiesSqlLoaderFactory(new DefaultPropertiesLoader("./modules/core/test/reporting.properties")).create()));

        ReportOutputDocument reportOutputDocument = reporting.runReport(new RunParams(report).templateCode("XLS"), new FileOutputStream("./result/smoke/result.xls"));

        Assert.assertEquals("myFileName.xls", reportOutputDocument.getDocumentName());

        testDatabase.stop();
    }
View Full Code Here

Examples of com.haulmont.yarg.reporting.Reporting.runReport()

        Reporting reporting = new Reporting();
        reporting.setFormatterFactory(new DefaultFormatterFactory());
        reporting.setLoaderFactory(new DefaultLoaderFactory().setSqlDataLoader(new PropertiesSqlLoaderFactory(new DefaultPropertiesLoader("./modules/core/test/reporting.properties")).create()));

        ReportOutputDocument reportOutputDocument = reporting.runReport(new RunParams(report), new FileOutputStream("./result/smoke/result.custom"));

        Assert.assertEquals("myFileName.txt", reportOutputDocument.getDocumentName());

        testDatabase.stop();
    }
View Full Code Here

Examples of com.haulmont.yarg.reporting.Reporting.runReport()

        reporting.setFormatterFactory(new DefaultFormatterFactory());
        reporting.setLoaderFactory(new DefaultLoaderFactory()
                .setGroovyDataLoader(new GroovyDataLoader(new DefaultScriptingImpl()))
                .setSqlDataLoader(new SqlDataLoader(testDatabase.getDs())));

        ReportOutputDocument reportOutputDocument = reporting.runReport(new RunParams(report), new FileOutputStream("./result/sample/bookstore.xls"));

        testDatabase.stop();
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.