迭代记录 - Crystal Reports 2008
我需要知道如何迭代 CR2008 中的记录,以及当它到达非空记录时,将其记录在变量中。
我有一个名为“frmAccum”的公式,我将其放入详细信息部分并抑制它。 我用它来收集处理的每条记录的信息。 我还有一个名为 frmReset 的公式,其中我将 stringvar“person_name”保留为“”,我可以将其放入组标头中以在分组后重置。
当遇到不为空且不为空的 person_name 字段时,我希望它将名称保留在要在报告标题中使用的变量中。
所以像这样:
stringvar person_name;
whileprintingrecords;
If ({Command.personname} <> "") Then
person_name := {Command.personname}
我无法让这个组合发挥作用。 任何帮助表示赞赏。
I need to know how to iterate through records in CR2008 and when it reaches a record that is NOT NULL, record that in a variable.
I have a formula called "frmAccum" that I drop in the details section and suppress it. I use this to gather information for each record that's processed. I also have a formula called frmReset where I rest the stringvar "person_name" to "" and I can drop that in a Group header to reset after a grouping.
When it comes across a person_name field that is NOT NULL and is not empty, I want it to retain the name in a variable to be used in the report header.
So something like this:
stringvar person_name;
whileprintingrecords;
If ({Command.personname} <> "") Then
person_name := {Command.personname}
I can't get this combination to work. Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,我没有得到回复,并弄清楚如何修改我的命令,以便将名称放入列中的所有字段中,这样我现在可以通过 Command.personname 提取它。
如果有人回来阅读本文并知道如何通过 Crystal 语法执行此操作,我们将不胜感激。
Well I didn't get a response and figured out how to modify my command, so that it put the name in all the fields in the column, so I can pull it now via Command.personname.
If anyone comes back to read this and knows how to do this via Crystal syntax, it would be much appreciated.