Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: How to Assign 2 different PARAMETER in crystal rep Post Reply Post New Topic
Author Message
kokok13
Newbie
Newbie


Joined: 18 Oct 2009
Location: Malaysia
Online Status: Offline
Posts: 1
Quote kokok13 Replybullet Topic: How to Assign 2 different PARAMETER in crystal rep
     Posted: 18 Oct 2009 at 8:13pm
select (distributor_code+ '-' +master_dealer_code+ '-' +state_code+ '-' +dealer_code)as agent_code , agent_type, company,contact_person, status, created_date as date, (CASE WHEN contact_mobile_no IS NOT NULL THEN contact_mobile_no WHEN contact_mobile_no IS NULL and contact_office_no IS NOT NULL THEN contact_office_no ELSE NULL END )as contact_no

from sdms_agent

where agent_type ='{?AgentType}' and status ='{?Status}'

order by (distributor_code+ '-' +master_dealer_code+ '-' +state_code+ '-' +dealer_code)

Actually i want to set two parameter in crystal report. where agent_type (Main,DIstributor,Master Dealer,Dealer) & status(active,unsigned,terminate,suspend).

I actually get the parameter. But when i choose the agent_type or status, i only can one by one choose and view on the report. example: agent_type i choose on Distributor, status choose Active. it sure will comes out the report of it.

But let say, i now want to view the Distributor with all the status. But it's not work. even i had try to put '%e%'. It really can't comes out with the result.

mean i want a list which contain of distributor with different status.
or in another way different agent_type with one status. or view all report.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 19 Oct 2009 at 7:00am
in the paramter, just multiselect.  you will need to adjust the filter.  If you are calling a stored proc, you will need to add an 'all' option, as you can't pass an array to a stored proc, and that is how CR stores multi selections.
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