Passing an array of values as a parameter.

Options
schmidtkevina
edited February 11, 2022 in Analytics #1
Is it possible to pass an array of values, or in this case, a JAVA Hashmap of values as a parameter to a report through the RE API?

Comments

  • JasonW
    edited December 31, 1969 #2
    Options
    This is currently not supported through parameters, but can be done adding the Java object to the scripting runtime:

    DummyClass dl = new DummyClass();
    config = new EngineConfig( );
    HashMap hm = config.getAppContext();
    hm.put( "dummy", dl);
    config.setAppContext(hm);

    in script or the expression builder it can then be referenced like:

    dummy.myMethod();

    Jason