Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically displaying 2 different report?

Status
Not open for further replies.

ajayz90

Programmer
Nov 12, 2002
65
US
How can we dynamically display 2 different reports based on paaremeter selection.

I have report 1 and report 2 and main report.If some one select parameter 1 we want to display report 2 and if he selects parameter 2 we want to select report 2....how can we do so in crystal?


Thanks in anticiparion.


Ajay


 
I don't know much about subreports, but my guess is that you could place the subreports in different sections, e.g., group footer #1a and group footer #1b and then conditionally suppress the sections by going to format section->group footer #1a->suppress->x+2 and enter:

{?yourparm} = "Report 2" //assuming GF #1a holds Report 1

For group footer #1b, which holds Report 2, enter:

{?yourparm} = "Report 1"

-LB
 
One of the students on one of my courses had a big report with 20+ subreports and he made the appear or disappear depending on that the entered into a parameter in the main report. Sort of a big KPI report where they selected the different KPI areas.

And that was back in CR7 days, so I imagine it would work fine with later versions.

Editor and Publisher of Crystal Clear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top