如何获得 PowerSoft 报告来解析 PowerBuilder 全局函数
我目前工作的环境中必须将报告作为 PowerSoft 文件通过电子邮件发送给用户。 有一个全局 PowerBuilder 函数,用于我的数据窗口的计算列。该数据窗口成为最终的 PSR 报告。
在我的测试中,当实时运行时,该函数可以很好地解析。但是,当用户运行报告时,它会将 PSR 发送到他们各自的电子邮件地址。 (我没有设计系统)
当他们打开 psr 时,该功能未解析。 有谁知道是否可以将此函数包装到数据窗口或最终的 psr 中?
谢谢, 格伦
I currently work in an environment where reports must be emailed to users as a PowerSoft file.
There is a global PowerBuilder function which is used on a computed column my datawindow. This datawindow becomes the final psr report.
In my testing the function is resolved fine, when run live. However, when the user runs the report, it sends the psr to their respective email address. (I didn't design the system)
When they open the psr, the function is not resolved.
Does anyone know if it is possible to wrap this function into the datawindow or into the final psr?
Thanks,
Glenn
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
全局功能必须可通过 PSR 查看器使用。时期。用户的 PSR 查看器必须具有相同的全局函数才能正确呈现数据窗口。
有一种方法可以解决这个问题,但是相当乏味。基本上,您需要用 SQL 列替换计算字段(使用全局函数)。更新 SQL 以包含适当数据类型的虚拟列。完成检索后,获取计算字段的值(查找“Describe ('evaluate')”)并在虚拟列上执行 SetItem()。显示列而不是计算字段。
The global function must be available through the PSR viewer. Period. The users' PSR viewer must have that same global function in order for the datawindow to render correctly.
There is a way to work around it, but it's rather tedious. Basically, you need to replace your computed field (that uses the global function) with a SQL column. Update your SQL to include a dummy column of the appropriate datatype. When you finish retrieving, get the value of your computed field (Look up "Describe ('evaluate')") and do a SetItem() on your dummy column. Display the column instead of the computed field.