Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse Birt报告多输入参数_Eclipse_Birt - Fatal编程技术网

Eclipse Birt报告多输入参数

Eclipse Birt报告多输入参数,eclipse,birt,Eclipse,Birt,我的问题和这个问题是一样的 我在那个问题上尝试了这个解决方案,但只有当所有参数都有值时它才起作用,但是当没有值时,Birt报告会输出这个错误 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. (Elemen

我的问题和这个问题是一样的

我在那个问题上尝试了这个解决方案,但只有当所有参数都有值时它才起作用,但是当没有值时,Birt报告会输出这个错误

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-将查询放入类似select*from mytable的 2-然后放置一个beforeOpen脚本,如:

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