Package org.pentaho.reporting.engine.classic.core

Examples of org.pentaho.reporting.engine.classic.core.SubReport.addExpression()


      report.addExpression(new RandomValueExpression("MR"));

      final SubReport sreport = new SubReport();
      sreport.setQuery(SUBREPORT_QUERY);
      sreport.addInputParameter("A", "PA");
      sreport.addExpression(new RandomValueExpression("SR"));
      report.getItemBand().addSubReport(sreport);

      DebugReportRunner.createPDF(report);

      querytracker = null;
View Full Code Here


    DebugReportRunner.execGraphics2D(report);
  }

  public SubReport createSubReport() {
    SubReport report = new SubReport();
    report.addExpression(new SingleValueExpression("subreport"));
    report.setInputMappings(new ParameterMapping[]{new ParameterMapping("test-column", "test-column")});
    report.setExportMappings(new ParameterMapping[]{new ParameterMapping("test-column", "test-column")});
    return report;
  }
View Full Code Here

    function.setName("out");
    function.setFormula("=output // this formula does not even parse!");
   
    SubReport subReport = new SubReport();
    subReport.addExportParameter("out", "out");
    subReport.addExpression(function);

    MasterReport report = new MasterReport();
    report.setDataFactory(new TableDataFactory(report.getQuery(), new DefaultTableModel(2,2)));
    final RelationalGroup rootGroup = (RelationalGroup) report.getRootGroup();
    rootGroup.getHeader().addSubReport((SubReport) subReport.derive());
View Full Code Here

    mgr.registerDefaults();
    final MasterReport report = (MasterReport) mgr.createDirectly(source, MasterReport.class).getResource();

    final ItemBand itemBand = report.getItemBand();
    final SubReport subReport = (SubReport) itemBand.getElement(0);
    subReport.addExpression(new ValidateChartConfigurationFunction());
    // the chart is in the report header. We now validate that there is a chart-dataset collector added to the
    // report.

    DebugReportRunner.execGraphics2D(report);
  }
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.