Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Crystal Reports 2008 Parameters

Posted on 2009-05-20
5
Medium Priority
?
580 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
[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
  • 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: 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.

Question has a verified solution.

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

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 …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

688 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