0

从 8.2 升级到 8.3 并测试新的无数据内容功能。如果返回结果,则报告按顺序查找。没有数据消息不会出现。但是,如果我们测试报告(传入参数但没有结果),我们会返回一个空白页面(pdf、html、excel 输出)。甚至页眉或页脚都不会出现在页面上。并且没有数据内容消息也不会出现。

我们有使用 Oracle SQL 的非常复杂的报告,并且在大多数情况下,标题内容链接到 SQL 语句以呈现数据库的输出并列出传入的参数。问题似乎与嵌入式数据对象有关,即我们有嵌入在表对象中的列表对象。到目前为止,我已经尝试剥离额外的层但没有成功。

在 8.2 中,我们使用样式变量,即 RowNumber()=0 或 RowNumber() 为 null 来有条件地隐藏报表正文中的数据对象。我们从未使用任何条件来隐藏或显示页眉或页脚,在 8.3 中这似乎是一个问题。

这在 8.3 中似乎是一个非常有用的增强功能,但我们还没有让它工作。有什么想法或建议可以尝试吗?

感谢您阅读本文。我很感激任何建议。

4

2 回答 2

0

We ran into this same problem when upgrading reports from 8.2 => 8.4. We reported it to Cognos as a bug -- Not sure if they've assigned a bug tracker id to it, but we got the impression it wasn't going to be fixed soon. (Obviously, if it exists in 8.3 and it has been carried forward to the next version, it's not a high priority.)

I'm sorry I don't have an answer at the moment on how to fix it, but I was planning to look into work arounds next week. I'll edit this post with any ideas I come up with.

UPDATE:

Not sure if this is an available feature of 8.3, but in 8.4 there is a new "No Data Contents" property for data containers (lists, blocks, etc.). Setting this value to yes creates two tabs at the top of the page, one for a page to be displayed if data is returned, and another for instances when no records are found. You can customize a message to be displayed using that second page. Pretty cool, actually, but buried in the documentation.

Hope that helps. If you still have problems, check out the Index topic "no data > specify what appears for a data container."

于 2009-06-21T13:33:23.263 回答
0

是的,它似乎返回了一个空白的pdf......但实际上,如果没有数据,cognos 查看器会在第二个提示页面出现错误。页眉和页脚以及不需要数据来呈现的项目......也没有显示出来。

这存在于 8.2 中,我们总是能够做一些工作来让它至少显示出来。现在在 8.3 中似乎更加普遍。

我也想要一个解决方案!住手!>_<

编辑:似乎一个轻微的解决方法是在 8.3 中创建一个新报告并从查询开始复制每个组件......然后是变量..然后是页面上的对象..然后是页面集和主详细信息关系。为了简单起见。基本上在 8.3 中从头开始重新创建报告似乎可以解决问题。

这适用于我们大约 90% 的报告。

于 2009-06-25T14:58:11.917 回答