Solved

Crystal Parameters do not show all values from query

Posted on 2014-03-31
8
2,986 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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
[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

 
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 500 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] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

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. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

635 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