Examples of CrosstabBuilder


Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabBuilder

    final MasterReport report = new MasterReport();
    report.setDataFactory(new TableDataFactory("query", tableModel));
    report.setQuery("query");
    final DesignTimeDataSchemaModel dataSchemaModel = new DesignTimeDataSchemaModel(report);

    final CrosstabBuilder builder = new CrosstabBuilder(dataSchemaModel);
    builder.addRowDimension("Row-Dimension-A");
    builder.addRowDimension(ROW_DIMENSION_B);
    builder.addColumnDimension(COLUMN_DIMENSION_A);
    builder.addColumnDimension(COLUMN_DIMENSION_B);
    builder.addDetails(VALUE, null);
    report.setRootGroup(builder.create());
    return report;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabBuilder

    final MasterReport report = new MasterReport();
    report.setDataFactory(new TableDataFactory("query", tableModel));
    report.setQuery("query");
    final DesignTimeDataSchemaModel dataSchemaModel = new DesignTimeDataSchemaModel(report);

    final CrosstabBuilder builder = new CrosstabBuilder(dataSchemaModel);
    builder.addRowDimension("Row-Dimension-A");
    builder.addRowDimension(ROW_DIMENSION_B);
    builder.addColumnDimension(COLUMN_DIMENSION_A);
    builder.addColumnDimension(COLUMN_DIMENSION_B);
    builder.addDetails(VALUE, null);
    report.setRootGroup(builder.create());
    return report;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabBuilder

    final MasterReport report = new MasterReport();
    report.setDataFactory(new TableDataFactory("query", tableModel));
    report.setQuery("query");
    final DesignTimeDataSchemaModel dataSchemaModel = new DesignTimeDataSchemaModel(report);

    final CrosstabBuilder builder = new CrosstabBuilder(dataSchemaModel);
    builder.addRowDimension("Row-Dimension-A");
    builder.addRowDimension(ROW_DIMENSION_B);
    builder.addColumnDimension(COLUMN_DIMENSION_A);
    builder.addColumnDimension(COLUMN_DIMENSION_B);
    builder.addDetails(VALUE, null);
    report.setRootGroup(builder.create());
    return report;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabBuilder

  @Test
  public void testSortOrderCalculationCrosstab() throws ReportProcessingException
  {
    ContextAwareDataSchemaModel model = new DesignTimeDataSchemaModel(new MasterReport());
    CrosstabBuilder builder = new CrosstabBuilder(model);
    builder.addDetails("Details", null);
    builder.addRowDimension("Row-A");
    builder.addRowDimension("Row-B");
    builder.addOtherDimension("Other-A");
    builder.addOtherDimension("Other-B");
    builder.addColumnDimension("Col-A");
    builder.addColumnDimension("Col-B");

    MasterReport report = builder.createReport();
    report.setAutoSort(Boolean.TRUE);
    ReportPreProcessor reportPreProcessor = create();
    MasterReport materialized = materializePreData(report, reportPreProcessor);
    Object attribute = materialized.getAttribute
        (AttributeNames.Internal.NAMESPACE, AttributeNames.Internal.COMPUTED_SORT_CONSTRAINTS);
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.