Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Conditional Parameters Post Reply Post New Topic
Author Message
AnJoMi18
Newbie
Newbie


Joined: 02 Feb 2009
Online Status: Offline
Posts: 2
Quote AnJoMi18 Replybullet Topic: Conditional Parameters
    Posted: 02 Feb 2009 at 6:39am

Hi,

I want to create linked parameters so that the user will be given different parameters based on a previous choice. Can this be done in Crystal 9??

Example - User is given 2 parameters P1 & P2, both are mandatory. Depending on the input for P2, then i want P3 or P4 to be displayed.....

Any ideas??

Anjomi18

 
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 02 Feb 2009 at 9:40am
I don't think you can do this. A couple of work arounds would be to give warnings as repot headers if the user picked data that was not congruent to the set up (P2 won't work with P1), or create a union table with all of your options then use an if then statement in your select to match back to your 2 variables. For example:
Options:
P1A and P2A
P1A and P2B
P1B and p2B
etc.
then set your select statment:
if parameter= "p1a and p2a" then table1.field=first parameter condition and  table2.field= second parameter condition else
if parameter= "p1a and p2b" then table1.field=first parameter condition and  table2.field= second parameter condition else if ...
IP IP Logged
AnJoMi18
Newbie
Newbie


Joined: 02 Feb 2009
Online Status: Offline
Posts: 2
Quote AnJoMi18 Replybullet Posted: 03 Feb 2009 at 1:29am
Thanks - Ill give it a try Thumbs%20Up
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.016 seconds.