Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: selecting records from a dynamic list Post Reply Post New Topic
Author Message
draven422
Newbie
Newbie


Joined: 21 Apr 2009
Online Status: Offline
Posts: 11
Quote draven422 Replybullet Topic: selecting records from a dynamic list
    Posted: 05 Jun 2009 at 9:54am
I'm looking for any assistance on building a report that allows the user to pick and choose what records they want to see in the report from a list that was generated from another selection.
 
In other words, build a select to list order numbers that was generated in the past month.  Then that list is used as a pick list that the user can see, and decide what ones they want in the report. 
 
I'm sure there is an easy solution, but my brain is already on vacation for the weekend.
 
Any help is greatly appreciated.


Edited by draven422 - 05 Jun 2009 at 9:55am
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 05 Jun 2009 at 10:04am
The last 6 months may be the catch.
If you data source can be a view or stored proc to limit the records to the last 6 months then no problem. just add the paramter as indicated below.
 
If not I am not sure you will be able to get exaclty what you want. When you add this parameter the user will be selecting from ALL order #s in the table, not just ones in the last 6 months.
 
Either way you will need to create a parameter, make it dynamic, link the value to the Order # and set the options to allow for multiple values as TRUE.
Change your select statement to
{Table.order#}={?my parameter}.
This will set the prompt for the selection and populate the list to select from.
IP IP Logged
draven422
Newbie
Newbie


Joined: 21 Apr 2009
Online Status: Offline
Posts: 11
Quote draven422 Replybullet Posted: 05 Jun 2009 at 12:16pm

Since the report would be used by outside users with varying timeframes, I was hoping that the report would first prompt the user for a date range, get the list, and then prompt the user what they want reported.  The outside users would only select those that haven't been paid, which they would have to cross-reference, and isn't a field in the datasource.  I guess it would be a report within a report.  The first one being the parameter for the second report.

Or did I just rephrase what you said in the previous post? 
 
Thanks!


Edited by draven422 - 05 Jun 2009 at 12:18pm
IP IP Logged
Sheila
Newbie
Newbie


Joined: 05 Jun 2009
Location: South Africa
Online Status: Offline
Posts: 6
Quote Sheila Replybullet Posted: 06 Jun 2009 at 12:45am
Hi There
 
On the same point I have found that if I use the 'dynamic list' option and point my parameter to a table in my report (not an outside list), it seems to have a limit in how many records it displays.  Is that normal?  Does anyone know of the maximum number of records it will display?   For that reason I cannot use the dynamic option if I am choosing from a database that has thousands of records in my 'dynamic list' table.
This might be a factor for you if my conclusion is correct.
Regards
Sheila
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 06 Jun 2009 at 12:14pm

Draven,

As far as selecting "items not paid" you can still do this with a paramter even if it is not a field if it can be determined from a field or combo of fields. You create the parameter as whatever, say a 1 or 2. 1 means paid, 2 means unpaid. In you select expert you just convert it something like ...
if ?parameter=1 then isnull(table.paymentfield} else table.paymentfield>0
(if 1 then condition that indicates record paid else condition that indactes record not paid)
 
Sheila,
Not sure about the limit of fields that it will display although it should be grouping the field to limit the responses. I also don't know how useful a record would be with thousands of possible selections. I know I have a table with around a thousand employee names that displays fine...


Edited by DBlank - 06 Jun 2009 at 12:15pm
IP IP Logged
rahulwalawalkar
Senior Member
Senior Member
Avatar

Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Quote rahulwalawalkar Replybullet Posted: 07 Jun 2009 at 1:33am
Hi
 
In Crystal XI Dynamic parameter returns only 1000 LOV values which can be viewed at a time.

Default number set for LOV in Crystal Reports XI R2

Resolution

Crystal Reports XI Release 2

Create a registry key HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Crystal Reports\DatabaseOptions\LOV.

NOTE
Alternatively, you can create the registry key HKEY_CURRENT_USER\SOFTWARE\Business Objects\Suite 11.5\Crystal Reports\DatabaseOptions\LOV and that key will override the settings of the HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Crystal Reports\DatabaseOptions\LOV key.


Add a string value "MaxRowsetRecords" and set the value to the maximum number of values that you desire for your report. For example, a value of 2000 will return up to 2000 values in the lowest level of a cascading parameter

 
Note:-But it does effect the performance i.e it takes time to load the report as it has to reterive many records and build value list.
 
In Crystal 2008 this issue is being resolved by using pagination in dynamic parameter list values.....
 
Cheers
Rahul
IP IP Logged
Sheila
Newbie
Newbie


Joined: 05 Jun 2009
Location: South Africa
Online Status: Offline
Posts: 6
Quote Sheila Replybullet Posted: 07 Jun 2009 at 5:33am

Hi Rahul

I think 'you are the Man' - I've had 2 problems and you've come up with solutions for them both!!   Wow - and so quick too.

Thanks so much from Sheila

 

 

 

 

Sheila
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.031 seconds.