0

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

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

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

1 回答 1

2

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

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

于 2013-10-13T15:47:48.890 回答