如何根据详细信息部分中的列值条件隐藏水晶报表中的组标题 [英] How to conditioanlly hide group header in crystal report based on a column value in details section

查看:16
本文介绍了如何根据详细信息部分中的列值条件隐藏水晶报表中的组标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望以前一定有人处理过这种情况.

I hope some one must have dealt this situation before.

我有一个水晶报表,在该报表上我有不同的部分,包括页眉、细节和页脚.我在详细信息部分显示部件相关信息,描述是显示的字段之一.

I have a crystal report and on that report I have different sections including headers ,detail and footer. I'm displaying parts related information on details section and description is one of the fields thats being displayed.

所以现在根据部分的描述(详细部分)我必须在页眉上显示一些文本.所以我必须为每个单独的部分寻找部分的描述,如果即使一个部分在所有部分中都有给定的描述,我必须在报告标题上打印一条消息.

So now based on part's description(in detail section)I have to display some text on the page header. So I have to look for part's description for every single part ,and if even a single part has the given description out of all the parts I have to print a message on report header.

我的假设是在页眉部分使用条件抑制选项,但不确定如何在页眉级别检查详细信息部分的值.

My assumption is to use conditonal suppress option at the page header section, but not sure how to check for values from details section at the page header level.

我们将不胜感激.

谢谢新能源汽车

推荐答案

这是我的处理方式.

创建一个公式,当您的条件满足时返回 1,否则返回 0.例如:

Create a formula which returns 1 when your condition is met- otherwise 0. For example:

if {table.field} like '*acid*' then 1 else 0;

然后您的条件抑制可以对您的新公式求和 - 如果结果为 0,它将隐藏消息.

Then your conditional surpression can sum your new formula- and if the result is 0 it will hide the message.

sum({formula}) = 0

这篇关于如何根据详细信息部分中的列值条件隐藏水晶报表中的组标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆