Birt报告多输入参数



我的问题与这个问题相同

此处

我尝试了这个问题的解决方案,但只有当所有参数都有值时,它才有效,但当没有值时,Birt Report会输出这个错误

The following items have errors:
Table (id = 4):
+ Can not load the report query: 4. Errors occurred when generating the report document for the report element with ID 4. (Element ID:4)

你们能帮我吗?

感谢

在该示例中,当参数没有值时,不会根据您在查询文本框中输入的内容修改查询。你也可以做一些类似的事情:1-将查询放入mytable中的select*2-然后放入一个beforeOpen脚本,如:

   if( params["myparameterval"] ){
       this.queryText = this.queryText + " where col1 = " + params["myparameterval"].value;
   }else{
       this.queryText = this.queryText + " where col1 = hardcodedvalue"
   } 

最新更新