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

Examples of org.pentaho.reporting.engine.classic.core.function.FormulaExpression


    ClassicEngineBoot.getInstance().start();
  }

  public void testExportParameter()
  {
    final FormulaExpression function = new FormulaExpression();
    function.setName("out");
    function.setFormula("=output // this formula does not even parse!");
   
    SubReport subReport = new SubReport();
    subReport.addExportParameter("out", "out");
    subReport.addExpression(function);
View Full Code Here


    final ResourceManager mgr = new ResourceManager();
    final MasterReport report = (MasterReport) mgr.createDirectly(url, MasterReport.class).getResource();
    report.getReportConfiguration().setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.FailOnAttributeExpressionErrors", "true");

    final FormulaExpression function = new FormulaExpression();
    function.setName("Test");
    function.setFormula("=MULTIVALUEQUERY(\"Good\")");

    report.getReportHeader().setAttributeExpression
        (AttributeNames.Core.NAMESPACE, AttributeNames.Core.NAME, function);

    try
View Full Code Here

    final ResourceManager mgr = new ResourceManager();
    final MasterReport report = (MasterReport) mgr.createDirectly(url, MasterReport.class).getResource();
    report.getReportConfiguration().setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.FailOnAttributeExpressionErrors", "true");

    final FormulaExpression function = new FormulaExpression();
    function.setName("Test");
    function.setFormula("=MULTIVALUEQUERY(\"Bad\")");

    report.getReportHeader().setAttributeExpression
        (AttributeNames.Core.NAMESPACE, AttributeNames.Core.NAME, function);

    try
View Full Code Here

    final ResourceManager mgr = new ResourceManager();
    final MasterReport report = (MasterReport) mgr.createDirectly(url, MasterReport.class).getResource();
    report.getReportConfiguration().setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.FailOnAttributeExpressionErrors", "true");

    final FormulaExpression function = new FormulaExpression();
    function.setName("Test");
    function.setFormula("=SINGLEVALUEQUERY(\"Good\")");

    report.getReportHeader().setAttributeExpression
        (AttributeNames.Core.NAMESPACE, AttributeNames.Core.NAME, function);

    try
View Full Code Here

    final ResourceManager mgr = new ResourceManager();
    final MasterReport report = (MasterReport) mgr.createDirectly(url, MasterReport.class).getResource();
    report.getReportConfiguration().setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.FailOnAttributeExpressionErrors", "true");

    final FormulaExpression function = new FormulaExpression();
    function.setName("Test");
    function.setFormula("=SINGLEVALUEQUERY(\"Bad\")");

    report.getReportHeader().setAttributeExpression
        (AttributeNames.Core.NAMESPACE, AttributeNames.Core.NAME, function);

    try
View Full Code Here

  private static final String[] ADDITIONAL_COLUMN_KEYS = new String[] { "chart::series-key", "chart::category-key",
      "chart::series-index", "chart::category-index", "chart::series-keys", "chart::category-keys", "chart::value" };

  public FormulaCategoryURLGenerator(final ExpressionRuntime runtime, final String formula) {
    this.runtime = new GenericExpressionRuntime(runtime);
    this.formulaExpression = new FormulaExpression();
    this.formulaExpression.setFormula(formula);
  }
View Full Code Here

  public FormulaXYZURLGenerator(final ExpressionRuntime runtime,
                                final String formula)
  {
    this.runtime = new GenericExpressionRuntime(runtime);
    this.formulaExpression = new FormulaExpression();
    this.formulaExpression.setFormula(formula);
  }
View Full Code Here

  public FormulaXYZTooltipGenerator(final ExpressionRuntime runtime,
                                    final String formula)
  {
    this.runtime = new GenericExpressionRuntime(runtime);
    this.formulaExpression = new FormulaExpression();
    this.formulaExpression.setFormula(formula);
  }
View Full Code Here

    super.doneParsing();
    expressions = new HashMap();
    for (int i = 0; i < styleExpressions.size(); i++)
    {
      final ElementStyleExpressionReadHandler handler = (ElementStyleExpressionReadHandler) styleExpressions.get(i);
      final FormulaExpression expression = new FormulaExpression();
      expression.setFormula(ReportDesignerParserUtil.normalizeFormula(handler.getFormula()));
      expressions.put(handler.getStyleKey(), expression);
    }
  }
View Full Code Here

      {
        element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.FIELD, getFieldname());
      }
      if (getFormula() != null)
      {
        final FormulaExpression formulaExpression = new FormulaExpression();
        formulaExpression.setFormula(getFormula());
        element.setAttributeExpression(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, formulaExpression);
      }
      if (format != null)
      {
        final SimpleDateFormat simpleDateFormat = (SimpleDateFormat) format;
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.function.FormulaExpression

Copyright © 2018 www.massapicom. 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.