Suppressing (hiding) sections within a Crystal Report based on some logic can be done from the Section Expert. To do this, follow the below steps:
1. Right-click on the section to be suppressed and select Section Expert.
2. Select the Common tab.
3. To the right of the Suppress checkbox, click the formula button.
4. In the formula workshop, enter a formula which results in either true or false. Note that it is not necessary to include a full if-then statement for this. If it is a simple formula, you can rely on Crystal Reports computing the result of a simple statement being true or false. For example:
{EV870_ACCT_MASTER.EV870_COUNTRY} <> "AUS"
Entering a formula always overrides the checkbox setting. The formula button will display in red as an indicator that the checkbox setting will be overridden.
Comments
0 comments
Please sign in to leave a comment.