具有动态Where条件的Jasper报告

时间:2018-10-15 10:22:10

标签: url jasper-reports parameter-passing jasperserver

我需要使用jasper报告工具生成报告。在此,我可以动态查询条件条件,并将其作为参数传递给jasper服务器。动态,条件查询就像    data = {cond:'(product.name ='test')'}。对我来说很好。但是当我将=条件更改为喜欢时,即    data = {cond:'(product.name ilike'%test%')},显示错误。无效的论点。有人可以支持我解决这个问题吗?

正确的结果-http://ip:8080/jasperserver/flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri=/reports/reports&reportUnit=/reports/reports/rptReporte&j_username=jasperreportadmin&j_password=jasperreportadmin&p_city='city1'

显示错误的网址-http://ip:8080/jasperserver/flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri=/reports/reports&reportUnit=/reports/reports/rptReporte&j_username=jasperreportadmin&j_password=jasperreportadmin&p_city喜欢'%city1%'

0 个答案:

没有答案