Cognos 8.3 中的可选提示
我是 Cognos Report Studio 的新手。我按业务日期将数据组织在查询项目中。 Cognos 报告按业务日期显示数据过滤器。对于业务日期,有一个单独的表连接。这始终是包含当前业务日期的一列一行表。 Cognos 报告计划每天在数据源中填充数据后运行。这部分工作得很好。
但是,我希望能够按需运行相同的报告,当我按需运行此报告时,它应该提示我输入日期,而不是从数据库表中选择它。我知道如何添加提示,但是当我添加提示时,我的计划报告不起作用!我无法提供任何默认值,因为它必须从表中动态选择它。
任何指示都会有帮助!
I'm new to Cognos report studio. I have data organized in query items per business date. The Cognos report shows a data filter by business date. For business date there is a separate table join. This is always one column, one row table with current business date. The Cognos report is scheduled to run everyday after data is populated in the data source. This part works just fine.
However, I want to have ability to run this same report on demand and when I run this report on demand it should prompt me for a date instead of picking it from the database table. I know how to add a prompt but when I add a prompt, my scheduled reports doesn't work! I can't provide any default as it has to be dynamically picking it from the table.
Any pointers would be helpful!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将日期过滤器(从提示派生的过滤器)设置为可选,并在另一个过滤器上设置一个条件,以便在提示具有值时忽略该条件。
Make the date filter (the one derived from the prompt) optional and set a condition on the other filter to be ignored if the prompt has a value.
这已经晚了,但可能对其其他人有帮助。我建议这样:
- 在元数据中,使用当前业务日期的默认值制作提示宏
- 在报表中,使用提示宏定义的参数进行日期提示
- 在报告计划中,将日期提示留空以每天刷新。
这样您的计划就会以刷新的日期运行,并且您还可以在手动运行报告时选择日期。
This is late but could be helpful for other guys. I suggest this:
- In the metadata, make a prompt macro with a default value of current business date
- In the report, make a date prompt using the parameter defined by prompt macro
- In report schedule, leave the date prompt blank to refresh that everyday
This way your schedule runs with refreshed date and also you can pick for a date while manually running a report.