?
Solved

Crystal Parameters do not show all values from query

Posted on 2014-03-31
8
Medium Priority
?
3,114 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 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
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
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] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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 …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

719 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