Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Selection based on multiple command Post Reply Post New Topic
Author Message
sa-user
Groupie
Groupie


Joined: 29 Jun 2011
Online Status: Offline
Posts: 65
Quote sa-user Replybullet Topic: Selection based on multiple command
     Posted: 29 Jul 2011 at 7:50am
I have 2 commands and 4 parameters.
In the search screen i am looking for a drop down option like below

Report Type Product
Product Family

If the first is selected (ie product) i want the parameters to work on 1st command
if the second is selected (ie product family) i want the parameters to work on 2nd command

I have something like below but it  does not seem to be working

If {parameter}=" Report Type Product" then Command1.field= {parameter} else
if {parameter}= " Product Family" then Command2.fiedl= {parameter}

IP IP Logged
sharona
Senior Member
Senior Member
Avatar

Joined: 16 Oct 2008
Location: United States
Online Status: Offline
Posts: 255
Quote sharona Replybullet Posted: 29 Jul 2011 at 8:00am
try an OR statment instead of else
sharona
IP IP Logged
sa-user
Groupie
Groupie


Joined: 29 Jun 2011
Online Status: Offline
Posts: 65
Quote sa-user Replybullet Posted: 29 Jul 2011 at 8:06am
IS this what you meant
If {parameter}=" Report Type Product" then Command1.field= {parameter} OR
if {parameter}= " Product Family" then Command2.fiedl= {parameter}
 
Did not work
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