【问题标题】:BIRT - execute sql query under getDefaultValueList Method of a parameterBIRT——在getDefaultValueList方法下执行sql查询一个参数
【发布时间】:2013-10-13 04:47:14
【问题描述】:

我想知道是否可以在 getDefaultValueList 方法中使用 DataSet 或 SQL 查询?

我想做如下所示的事情,但是下面的代码不起作用,因为数据集是在显示参数表单后执行的。

if (dataSetRow["customerId"] == reportContext.getHttpServletRequest().getParameter("customerId"))
{
  reportContext.getDesignHandle().findParameter("SomeParameter").hidden = true;
}

【问题讨论】:

    标签: parameters dataset birt


    【解决方案1】:

    如果我理解正确,您想根据参数customerId 的值隐藏或显示SomeParameter

    由于所有参数同时“加载”到表单中,因此无法进行这种直接连接。但是,您可以查看级联参数,看看您是否可以根据它们的功能调整您的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-08-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-30
      相关资源
      最近更新 更多