带Birt参数的Grails

带Birt参数的Grails,grails,birt,Grails,Birt,好的,来自插件birt的例子帮助了我很多,但有一个问题困扰着我,我如何将参数传递给birt以从id中选择 question | description ---------------------- 1 | blabla 2 | xoxoxo 3 | tititi 4 | buhbuh 我有这张桌子在上面。。。从我的grails应用程序中,我选择我想要的问题,所以如果我选择1,3,4。。。Birt报告仅显示所选内容 基本上,我也必须更改我的

好的,来自插件birt的例子帮助了我很多,但有一个问题困扰着我,我如何将参数传递给birt以从id中选择

question | description
----------------------
1        | blabla
2        | xoxoxo
3        | tititi
4        | buhbuh
我有这张桌子在上面。。。从我的grails应用程序中,我选择我想要的问题,所以如果我选择1,3,4。。。Birt报告仅显示所选内容

基本上,我也必须更改我的数据集,因为我的查询是静态的,需要是动态的:

...(query) and a1.question_id = 1 and a2.question_id = 2 and and a3.question_id = 3 (query)...

但是在grails中,我将如何将参数传递给dataset?

Birt报告接收带有参数的参数,您可以使用这部分代码

def options = birtReportService.getRenderOption(request, 'html')
def result=birtReportService.runAndRender(reportName, params, options)
render  result

。记住别忘了把你的rptdesing放在(web app)上的文件夹中,

我在
数据集
中的查询将知道使用,例如mysql:
@
作为参数?看看这段视频,使用我昨天得到的数据集中的参数。谢谢