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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Toggle view between two reports(tables)

Status
Not open for further replies.

Jdbenike

MIS
Sep 11, 2008
74
US
I have two different reports within one report in SSRS.

Originally I want to hide both, then based on a paramater, or textbox, or checkbox give the user the ability to view one or the other.

Is there a simple way of dong this? I see you can make the tables non-visible, but what would i put in the toggle item part then?

Any help would be appreciated.
 
You can create a new parameter to prompt for the report to be shown. Add the names or descriptions of your reports as the values for the new parameter.

Then, in each "report"--whether it's by table, matrix or list--set the expression of the Hidden property to an expression like this:
Code:
=iif(Parameters!ShowReport.Value = "Report1", false, true)

You would obviously change the string in that expression to the name which corresponds to the selected value.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top