Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Displaying of Charts based on if/then Post Reply Post New Topic
Author Message
Sharadcm83
Newbie
Newbie


Joined: 06 Feb 2008
Online Status: Offline
Posts: 1
Quote Sharadcm83 Replybullet Topic: Displaying of Charts based on if/then
     Posted: 06 Feb 2008 at 11:00am

I have a chart that i have placed on the report header of my report. I ONLY want this chart visible to a certain set of users when generated.

Basically as a parameter I pass in a role value. I ONLY want this chart to be visible to those users of a certain role number.
 
ASsuming, the chart is to be visible for users of role 1 and NOT visible to users of role 2....
 
Then if the role is 1 of the person generating the report, then the chart is displayed on the erport header. If the role is 2 of the person generating the report, then the chart is NOT displayed and also that space for the chart is supressed - basically jump straight to group header 1.
 
Is this possible?
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 06 Feb 2008 at 11:34am
yes, this is possible. Make sure the chart is the only object in a section (add a second section if you need to separate it) and then go to the Section Expert. For the Suppress property, click the conditional formatting button and enter a formula such as

{?RoleParameter} = 2


This will suppress the chart when the role is equal to 2. I discuss many tips and tricks for creative report formatting in the "Advanced Formatting Techniques" chapter of my book Crystal Reports Encyclopedia.

Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum