【问题标题】:Birt Report Multiple Input ParameterBirt 报告多输入参数
【发布时间】:2012-09-11 08:50:21
【问题描述】:

我的问题和这个问题一样

here

我尝试了该问题的解决方案,但只有在所有参数都有值时才有效,但当没有值时,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)

你们能帮帮我吗?

谢谢

【问题讨论】:

    标签: eclipse birt


    【解决方案1】:

    在该示例中,当参数没有值时,不会根据您在查询文本框中输入的内容修改查询。您还可以执行以下操作: 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"
       } 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多