Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Crystal Parameters do not show all values from query

Posted on 2014-03-31
8
Medium Priority
?
3,236 Views
Last Modified: 2014-04-06
Report written in Crystal XI using a SQL command as the datasource.  When the command is run in SSMS against the data, it returns all records.  I have created a parameter to prompt the user dynamically to select a range of values from a field in the query (user name).  However, the parameter list does not show all of the available user names.  Without the parameter and the condition on the parameter, all values for all user names are shown.  The minute a parameter is used, the report only offers a subset of user names.

Also, creating a parameter from the Command window does nothing, clicking Create creates the parameter but the minute you exit from the command window, the parameter disappears.
0
Comment
Question by:branuda
  • 5
  • 3
8 Comments
 

Author Comment

by:branuda
ID: 39966753
Adding this:  HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.0\Crystal
Reports\DatabaseOptions\LOV

with a MaxRowsetRecords value does not work.
0
 
LVL 101

Assisted Solution

by:mlmcc
mlmcc earned 2000 total points
ID: 39968397
0
 

Assisted Solution

by:branuda
branuda earned 0 total points
ID: 39969561
OK.  I set it to 100,000 and it worked.  It was 1000.  I am wondering if this provides the minimum number of records that Crystal needs to provide an effective "select distinct" from all rows.  It doesn't have anything to do with the actual number of values in the dropdown list because I have 10 distinct records and 1000 didn't work.  So my question is whether this number needs to be set to a number much higher than the total number of records returned by the query.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 101

Expert Comment

by:mlmcc
ID: 39969691
I don't know.  That is why I prefaced the remark with Crystal by defaults limits it to 1000 rows or values. I don't know if the return is based on values or rows.  Your experience would tend to indicate it is rows.

Do you have Crystal set to return distinct rows?
That should reduce the number you require.

mlmcc
0
 

Author Comment

by:branuda
ID: 39969794
Unfortunately I can't.  The report needs to return all rows for a given user and none is distinct.
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 39969947
You could try adding another command that just pulls the field you want from the database and base the parameter on that.

You don't need to include it in the report in any way other than as the source for the parameter values,

mlmcc
0
 

Author Comment

by:branuda
ID: 39970017
Thanks for all your help!
0
 

Author Closing Comment

by:branuda
ID: 39981041
Adding the registry key is the key to this solution.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question