Solved

Dynamic drop-down list using Crystal Reports

Posted on 2014-09-30
3
2,992 Views
Last Modified: 2014-10-04
I need to create a report that accepts two parameters. The second parameter in the report will present a dynamic drop-down list which is populated depending upon the information the user enters for the first parameter. Is this doable using Crystal Reports 2013? If so please provide an example.

Thanks
0
Comment
Question by:Ray Turner
3 Comments
 
LVL 18

Expert Comment

by:vasto
Comment Utility
This is not doable because Crystal reports is an engine, while setting parameters is a feature provided by the user interface. In fact the first parameter in your scenario is not a report parameter at all, it is a parameter for the query , which will get the values for the second parameter. What you can do is to create a command to retrieve the values for Parameter2 and add a parameter for this command. When you open the report it will ask you for a value for the command parameter, will run the command and will ask you again to select a value for Parameter 2. The difference is that the 2 parameters will be shown one after another in 2 separate dialogs instead of in one as you probably would like to see them. You can find report viewers , which support the scenario you are describing. I know this one: R-Tag (http://www.r-tag.com). They have a community edition, which is free. Here is a demo video showing your scenario with this viewer. http://www.r-tag.com/Pages/Preview_CascadingParameters.aspx

You can write also your own viewer.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
Comment Utility
It is doable in Crystal.

Create a parameter in the report.
Give the parameter a name
Set the type to DYNAMIC
Click in the grid under VALUE (Click here to add item)
Choose the field for the first parameter
Click under PARAMETERS to CREATE THE PARAMETER
Click in the box (Click here to add item)
Choose the second field
Click to create the parameter
Click OK

IN the FIELD EXPLORER you can right click the parameters to rename them if you wish

Use them in the RECORD SELECTION to filter the data as desired

mlmcc
0
 

Author Closing Comment

by:Ray Turner
Comment Utility
Thanks a lot!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

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…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 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

12 Experts available now in Live!

Get 1:1 Help Now