Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Restricting values in prompt Post Reply Post New Topic
Author Message
socrates
Newbie
Newbie
Avatar

Joined: 20 Mar 2007
Online Status: Offline
Posts: 15
Quote socrates Replybullet Topic: Restricting values in prompt
    Posted: 03 Jul 2007 at 10:49pm
Hi all,
           How do we restrict values displayed in the prompt.
 
Eg: column A is used for prompt and  has 1,2,3,4 ,5
 
But i want to display only 1,2,3 based on some other column B from the same table. If B ='t' then prompt has to display 1,2,3 else all values..
 
Is this possible...?Confused
 
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 03 Jul 2007 at 11:06pm
You would have to do this using DCPs. They allow you to change the second prompt based upon what is entered for the first prompt.
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
socrates
Newbie
Newbie
Avatar

Joined: 20 Mar 2007
Online Status: Offline
Posts: 15
Quote socrates Replybullet Posted: 04 Jul 2007 at 12:39am
But i dont want the first prompt.Its fixed that Col B value is 't' for this report and hence on the prompt 1,2,3 should only be displayed...
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 04 Jul 2007 at 9:21am
I see now. In that case you will have to get a little tricky and create a Command object that links the table another table which lists the possible selections. Join the two tales on field B so that in the second table only the fields you want to appear will show up because they are the ones that matched the value in Col B.

Not sure how much sense that made, but not sure how else to say it right now. Basically, if you join a table of your selections based on Col B, then only the selections for the current value of B will be shown.
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
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.