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