Solved

Crystal Parameters do not show all values from query

Posted on 2014-03-31
8
2,488 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 100

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
 
LVL 100

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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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 100

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
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 …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now