Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports
Viewing all articles
Browse latest Browse all 4814

How do you filter a dynamic parameter's list?

$
0
0

Hello,

 

I was wondering if it's possible to filter a dynamic parameters list results. Here's an example of I'm trying to do:

 

Let's say you have a table called TableA with columns Col1, Col2, and Col3. I want my dynamic parameter to display in the drop-down box all Col3 values where Col1 = valueA and Col2=valueB.

 

I have tried creating a SQL Command using this as the query: select Col1,Col2,Col3 from TableA where Col1={?valueA} and Col2={?valueB}. I then linked (with an inner join) this command table to the actual TableA table. It was my thought that if I were to setup my dynamic parameter so that it pulls from Command.Col3 or TableA.Col3 it would pull the filtered results based on the Col1={?valueA} and Col2={?valueB} conditions in my Command table, but currently this causes my dynamic parameter to display a text box and not a drop-down box when I run the report. Any thoughts?

 

Any help is appreciated.

 

Thanks.


Viewing all articles
Browse latest Browse all 4814

Trending Articles