Examples of indexOfSelectable()


Examples of jimm.datavision.source.Query.indexOfSelectable()

    // in any report field (but the formula is), prove that the query will
    // contain the user column.
    Query q = (Query)report.getDataSource().getQuery();
    q.findSelectablesUsed();
    assertTrue("user col contained in formula isn't in query",
         q.indexOfSelectable(uc) >= 0);

    // Now make the formula's expression a Ruby expression that "hides" a
    // column that isn't otherwise in the report. By "hide" I mean that a
    // simple search for "{" won't work; the formula will have to use its
    // "exceptAfter" ivar to ignore the "#{" Ruby expession start.
View Full Code Here

Examples of jimm.datavision.source.Query.indexOfSelectable()

    f.setExpression("#{{aggregate_test.col1}}");
    Column col = report.findColumn("aggregate_test.col1");
    assertNotNull(col);
    q.findSelectablesUsed();
    assertTrue("col contained in Ruby string expression isn't in query",
         q.indexOfSelectable(col) >= 0);
}

public void testIgnoreNonColumns() {
    Formula f = new Formula(new Long(0), report, "ignore non-columns");
    try {
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.