Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

ssrs 2008 default parameter value issue

$
0
0

Problem is there is only 1 parameter value and the report runs right away without allowing the user to click the 'view report' button.

In a new SSRS 2008 report, I am allowing the user to select which report they  would like to see generated by selecting the report name from a dropdown list. This is a multi-valued parameter and the parameter name is called 'report'. The default value is for all 5 reports to be selected.

All 5 reports are  on the 'main' report. There will be no subreports. Each report has its own unique matrix and the matrix is  visibile based upon what is selected in the parameter called 'report'.

The following is how I make all 5 reports show up as a default selection.

1.Right-click the multiple parameter ‘repot’ to open the Properties dialog box.

2.Specify the values below in the Available values:
 Label: report1                                                 Value: report1
 Label: report2                                                 Value: report2
 Label: report3                                                 Value: report3
 Label: report4                                                 Value: report4
 Label: report5                                                 Value: report5

3.Specify the values below as the Default Values:
 report1   report2   report3   report4   report5

4.Right-click the ‘report1’ to open the Tablix Properties dialog box.

5.Select Visibility in the left pane, type the expression below in the “Show or hide based on an expression” textbox:
 =iif(InStr(join(Parameters!report.Value,","),"report1")>0,false,true)

6.Use the expressions below to control the visibility of the ‘report2’, ‘report3’, ‘report4’, ’report5’:
 =iif(InStr(join(Parameters!report.Value,","),"report2")>0,false,true)
 =iif(InStr(join(Parameters!report.Value,","),"report3")>0,false,true)
 =iif(InStr(join(Parameters!report.Value,","),"report4")>0,false,true)
 =iif(InStr(join(Parameters!report.Value,","),"report5")>0,false,true)

Thus can you tell me if there is a way for all 5 reports to be selected originally and not execute right away? I want the user to be ablew to click the 'view report' button?


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>