如何“参数化”? Reporting Services 数据集中的 DB2/iSeries 文件?
这是对我的 Microsoft Reporting Services 报告 (.rdl) 中的数据集的示例查询。
SELECT ORDNO FROM INTERFACET.DOPPRMAH
它通过 IBM 的 OLE DB 驱动程序连接到 iSeries。
如何“参数化”“接口”部分。
This is a sample query for a dataset in my Microsoft Reporting Services Report (.rdl)
SELECT ORDNO FROM INTERFACET.DOPPRMAH
This is connecting to the iSeries via the OLE DB driver from IBM.
How do I "parameterize" the 'INTERFACET' part.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不会,至少很容易... SELECT 被嵌入到 RDML 文件或报告定义文件中。
这是我能想到的两种解决方法,创建多个数据集,将一个命名为“PROD”,另一个命名为“TEST”。 在将环境作为参数传递到报表中时,报表文件知道要使用哪个数据集。
第二个选项是生成一些自定义代码和 dll,用于配置 RDML 文件,就像处理本地化资源文件一样。
如果我有选择的话,我可能会选择多个数据集......
You don't, easily at least... the SELECT is embedded into the RDML file or the report definition file.
These are the 2 workarounds I can think of, create multiple datasets, name one for PROD, the other for TEST. While passing in the environment to utilize into the report as a parameter, the report files know which dataset to use.
The second option would be to generate some custom code and dll's that configure the RDML file just like you would do with resource files for localization.
If I had my pick, I would probably just go with the multiple datasets...