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

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


    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    final EventMonitorFunction eventMonitorFunction = new EventMonitorFunction("Name");
    eventMonitorFunction.setDeepTraversing(true);
    report.addExpression(eventMonitorFunction);

    final PrintReportProcessor prc = new PrintReportProcessor(report);
    final PageDrawable pageDrawable = prc.getPageDrawable(2);
    assertNotNull(pageDrawable);
    final RenderNode[] renderNodes = pageDrawable.getNodesAt(1, 1, null, null);
View Full Code Here


    final MasterReport report = new MasterReport();
    report.setReportHeader(header);
    report.setReportFooter(footer);
    report.setName("Band in Band stacking");

    report.addExpression(new ComplexComponentExpression("CreateComponent"));
    return report;
  }


  public static void main(final String[] args)
View Full Code Here

    final MasterReport result = new MasterReport();

    // set up the functions...
    final PageFunction f1 = new PageFunction("page_number");
    result.addExpression(f1);

    // set up the item band...
    final ItemBand itemBand = result.getItemBand();
    configureItemBand(itemBand);
View Full Code Here

    final MasterReport result = new MasterReport();

    // set up the functions...
    final PageFunction f1 = new PageFunction("page_number");
    result.addExpression(f1);

    // set up the item band...
    final ItemBand itemBand = result.getItemBand();
    configureItemBand(itemBand);
View Full Code Here

    final MasterReport report = new MasterReport();
    report.setReportHeader(header);
    report.setReportFooter(footer);
    report.setName("Band in Band stacking");

    report.addExpression(new ComplexComponentExpression("CreateComponent"));
    return report;
  }


  public static void main(final String[] args)
View Full Code Here

    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    report.addExpression(new EventMonitorFunction());

    DebugReportRunner.execGraphics2D(report);
  }
}
View Full Code Here

    report.getParameterValues().put("Rows", "ALL");

    final RelationalGroup group = new RelationalGroup();
    group.addField("Rows");
    report.setRootGroup(group);
    report.addExpression(new ValidateExpression());

    DebugReportRunner.execGraphics2D(report);
  }

View Full Code Here

      querytracker = new HashSet();

      final MasterReport report = new MasterReport();
      report.setDataFactory(new TrackingStaticDataFactory());
      report.setQuery("org.pentaho.reporting.engine.classic.core.bugs.Pre497Test#createMasterReport");
      report.addExpression(new RandomValueExpression("MR"));

      final SubReport sreport = new SubReport();
      sreport.setQuery(SUBREPORT_QUERY);
      sreport.addInputParameter("A", "PA");
      sreport.addExpression(new RandomValueExpression("SR"));
View Full Code Here

    itemSumFunction.setName("fn");

    final MasterReport report = new MasterReport();
    report.setQuery("test");
    report.setDataFactory(new TableDataFactory(report.getQuery(), model));
    report.addExpression(itemSumFunction);
    final ItemBand itemBand = report.getItemBand();
    itemBand.addElement(createNumberElement(0, "value", "I1"));
    itemBand.addElement(createNumberElement(100, "fn", "I2"));

    final PageFooter pageFooter = report.getPageFooter();
View Full Code Here

    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    report.addExpression(new EventMonitorFunction());

    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.