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

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


    final TotalItemCountFunction f = new TotalItemCountFunction();
    f.setName("continent-total-gc");
    f.setGroup("Continent Group");
    f.setDependencyLevel(1);
    report.addExpression(f);

    final TotalItemCountFunction f2 = new TotalItemCountFunction();
    f2.setName("total-gc");
    f2.setDependencyLevel(1);
    report.addExpression(f2);
View Full Code Here


    report.addExpression(f);

    final TotalItemCountFunction f2 = new TotalItemCountFunction();
    f2.setName("total-gc");
    f2.setDependencyLevel(1);
    report.addExpression(f2);

    DebugReportRunner.execGraphics2D(report);
  }

  public void testSimplifiedRun() throws Exception
View Full Code Here

  }

  public void testSimplifiedRun() throws Exception
  {
    final MasterReport report =  new MasterReport();
    report.addExpression(new EventMonitorFunction());
    report.addExpression(new TotalItemCountVerifyFunction());
    report.setDataFactory(new TableDataFactory("default", new AggregateTestDataTableModel()));
    report.setQuery("default");
    final RelationalGroup rootGroup = (RelationalGroup) report.getRootGroup();
    rootGroup.clearFields();
View Full Code Here

  public void testSimplifiedRun() throws Exception
  {
    final MasterReport report =  new MasterReport();
    report.addExpression(new EventMonitorFunction());
    report.addExpression(new TotalItemCountVerifyFunction());
    report.setDataFactory(new TableDataFactory("default", new AggregateTestDataTableModel()));
    report.setQuery("default");
    final RelationalGroup rootGroup = (RelationalGroup) report.getRootGroup();
    rootGroup.clearFields();
    rootGroup.addField("Continent");
View Full Code Here

    final TotalItemCountFunction f = new TotalItemCountFunction();
    f.setName("continent-total-gc");
    f.setGroup("Continent Group");
    f.setDependencyLevel(1);
    report.addExpression(f);

    final TotalItemCountFunction f2 = new TotalItemCountFunction();
    f2.setName("total-gc");
    f2.setDependencyLevel(1);
    report.addExpression(f2);
View Full Code Here

    report.addExpression(f);

    final TotalItemCountFunction f2 = new TotalItemCountFunction();
    f2.setName("total-gc");
    f2.setDependencyLevel(1);
    report.addExpression(f2);

    DebugReportRunner.execGraphics2D(report);
  }

}
View Full Code Here

    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    report.setDataFactory(new TableDataFactory("default", new AggregateTestDataTableModel()));

    report.addExpression(new TotalGroupCountVerifyFunction());
    // make sure that there is no default group ...
    final RelationalGroup g = report.getGroupByName("default");
    if (g != null)
    {
      report.removeGroup(g);
View Full Code Here

    final TotalGroupSumFunction f = new TotalGroupSumFunction();
    f.setName("continent-total-gc");
    f.setGroup("Continent Group");
    f.setField("Population");
    f.setDependencyLevel(1);
    report.addExpression(f);

    final TotalGroupSumFunction f2 = new TotalGroupSumFunction();
    f2.setName("total-gc");
    f2.setField("Population");
    f2.setDependencyLevel(1);
View Full Code Here

    final TotalGroupSumFunction f2 = new TotalGroupSumFunction();
    f2.setName("total-gc");
    f2.setField("Population");
    f2.setDependencyLevel(1);
    report.addExpression(f2);

    DebugReportRunner.execGraphics2D(report);


  }
View Full Code Here

  public void testReport() throws Exception
  {
    final TableModel tableModel = createTableModel();
    final MasterReport report = createReport(tableModel);

    report.addExpression(create("cell-sum", null, COLUMN_DIMENSION_B));
    report.addExpression(new ValidateFunctionResultExpression("#cell-sum", true, null));

    report.addExpression(create("detail-sum", COLUMN_DIMENSION_B, ROW_DIMENSION_B));
    report.addExpression(new ValidateFunctionResultExpression("#detail-sum", true, COLUMN_DIMENSION_B));
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.