Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Filtering Data with Parameters Post Reply Post New Topic
Author Message
sandy
Groupie
Groupie


Joined: 10 Jan 2007
Location: United States
Online Status: Offline
Posts: 45
Quote sandy Replybullet Topic: Filtering Data with Parameters
    Posted: 23 Aug 2007 at 8:41am
Upon reading Chapter 4 - Filtering Data with Parameters, I wanted to get any ideas on how to increase performance when running a report that has 4 parameters, only 1 of which is dynamic.
 
The report allows the user to pick any combination of 4 parameters such as work order number, activity(this prompt is dynamic), start date and end date.
 
Let's say the user is selecting only on work order number and leaving the other parameters blank.   Because there is a dynamic prompt on activity (which the user left blank) is my report running slow because it is going out to the database?  If that is the case, is there something on the front end so that it can ignore going out to the database when it is not necessary since that parameter was left blank?     Thanks in advance!!Unhappy
I should probably mention that my report contains 6 subreports as well.


Edited by sandy - 23 Aug 2007 at 9:38am
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 23 Aug 2007 at 11:58am
Well, if you have 6 subreports, that's most likely going to kill performance from the very start. Re the parameters, I create a stored procedure that expects all the parameters and then have it dynamically test for which parameters to filter on. For example you could say
WHERE @param='' OR field1=@param

That puts the workload on the server and not on CR.
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.