Solved

Crystal Reports 2008 Parameters

Posted on 2009-05-20
5
571 Views
Last Modified: 2012-05-07
I am trying to create a report (Crystal 2008) that is based of a stored procedure. The procedure has 3 parameters. One string and 2 dates (start/end). The string should parameter needs to be a dynamic list so I've created a view to populate it. Given this I have 2 datasources...the procedure (that the report will be based on) and the view which populates the string parameter list. The problem is that the populating of the string parameter is very irratic. Sometimes the string parameter's list is populates and shows a drop-down selection and then other times it shows as simply a text box entry with no list at all. I'm not sure how to phrase the question other than "has anyone seen this erratic behavior with Crystal Reports 2008? Is there something simple I could be overlooking?" Thanks for any suggestions!
0
Comment
Question by:brianwells05
  • 4
5 Comments
 

Author Comment

by:brianwells05
ID: 24434347
This seems to happen when I have more than 1 view selected as a datasource, then at least one paramater looking to each view as it's dynamic pick list...hope this helps. When more that 1 datasource is used I can only get a drop down for 1 pick list parameter and no more.
0
 

Author Comment

by:brianwells05
ID: 24434485
This doesn't occur if I create a report with 4 datasources (1 - table, 2/3/4 - views). The dynamic pick lists work fine, but if the first datasource is a stored procedure instead of a table it goes crazy. Not sure if using a mixture of parameters from a stored procedure and self defined is not allowed or what. But if the report is based on a stored procedure the dynamic parameter pick lists go completely random.
0
 
LVL 26

Expert Comment

by:Kurt Reinhardt
ID: 24435310
For the sake of clarification, you have 3 input parameters in your proc and you modified the properties of one of them to be dynamic?  If not, did you create a parameter in Crystal Reports (external to the proc) and you're trying to pass it into the proc?

When you base a report off a stored procedure, the stored procedure must execute fully and return data before any Crystal Reports functionality can be executed (Crystal Reports parameters, for example, or the View being queried).

Depending on how you built the parameter, solutions might be different.

~Kurt
0
 

Author Comment

by:brianwells05
ID: 24435822
For simplicity you can take the same example with 2 parameters (1 from the stored procedure, 1 built in crystal). Now you have 3 datasources; the stored procedure, then 2 views. The views are used to populate each of the parameters dynamic pick lists and the procedure results are for the report results. Does this make more sense? It is impossible for me to get both parameters pick lists populated. One will default to a drop down list and the other will remain a text box entry...and there is no logical explanation as to which parameter will show up as a list or text entry...very confusing? As for your earlier comment, shouldn't the views be executed before the stored procedure since they are used for the drop down lists and the procedure results are needed until the parameters are passed to it?
0
 

Accepted Solution

by:
brianwells05 earned 0 total points
ID: 24580559
I figured it out...their were multiple datasources selected to populate the dynamic parameters. By default, Crystal was creating primary key links to the datasources which filtered the list before the parameter prompt. Seems obvious now....
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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 …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

808 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