How do you set and pass a parameter to a BIRT report created by the BIRT Report Designer through the BIRT API?

后端 未结 1 1833
闹比i
闹比i 2021-02-14 20:13

I\'ve created a simple report that takes a single parameter. This parameter is used in the query and executes fine when directly executed in the report designer. By the way I\

1条回答
  •  别那么骄傲
    2021-02-14 20:45

    You need to set the parameters on the IRunAndRenderTask:

    IRunAndRenderTask task =
        engine.createRunAndRenderTask(reportRunnable);
    Map< String, Object > birtParams = ...;
    task.setParameterValues( birtParams );
    

    0 讨论(0)
提交回复
热议问题