Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Dynamic Parameters Problem Post Reply Post New Topic
Author Message
dbodell
Groupie
Groupie
Avatar

Joined: 08 Nov 2011
Location: United States
Online Status: Offline
Posts: 53
Quote dbodell Replybullet Topic: Dynamic Parameters Problem
    Posted: 27 Dec 2011 at 11:48am
I am having a strange problem with cascading parameters. I have a report based on a table that has a bunch of medical procedures in it and each procedure belongs to a specific category. I want to select the category and then select from the procedures in that category. I have a dimension table ljoined to the transaction table (left join from the transactions to the dimension table) that is a simple list of all valid procedures with their categories.
When I create the dynamic cascading parameters, I first enter Proc Category from the transaction table as the first value and create the parameter and then below that I enter Proc Code from the transaction table and create the parameter. Both are set as multiple selection parameters. However, when I preview and see the parameters I am only seeing two of the categories (there are many of them) and can therefore only select procedures belonging to those two categories. I don't have any filters in anything that would limit the data to those two categories. It is completely weird.
 
Also, should I be setting up the parameters using the base transaction table or the dimension table list of procedure categories and codes? It seems that when I set up the parameters using the dimension table, I don't get any values at all for the procedure category.
 
Looking forward to your help.
 


Edited by dbodell - 27 Dec 2011 at 11:50am
Thanks,
D. Bodell
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 28 Dec 2011 at 3:51am
does changing the selection to single select instead of multi produce better results.
 
You would think that join to the data table would give the best results...
 
It's been a long while since I used the parameters, and since anything is possible, is there more than 1000 items in the list?  The parameter lists seem to not like displaying more than 1000 rows.
 
Perhaps CR is getting confused with the data table as values are sure to repeat, but the base lookup table you said yields no results, which seems even odder.
 
Just for fun (and debugging) you could create a command object like:
select distinct Procedure, code from table
 
and try using that in the cascading prompts (linking it to the main data table you want to filter).  If you get similar results, I would try running the same query on your main datatable...CR will only display parameters for which a report will return results.
 
So, say you have procedure x, but it is not used in the data table, CR won't list it as a possible parameter as it will return an blank report (at least that has been my experience with cascading parameters)
 
HTH
IP IP Logged
dbodell
Groupie
Groupie
Avatar

Joined: 08 Nov 2011
Location: United States
Online Status: Offline
Posts: 53
Quote dbodell Replybullet Posted: 28 Dec 2011 at 11:52am
Thanks HCH very much. It seems that the problem is resolved  by not using multiple selections on BOTH parameters. In other words, it worked when I selected only 1 procedure category at a time and then selected multiple procedures from there. It should work with both levels being multiselect but perhaps it is thinking that the second level has to be in ALL of the categories selected instead of ANY of the categories selected.
Meanwhile, have a great New Year!
Thanks,
D. Bodell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.014 seconds.