In a new ssrs 2008 report, the problem is all reports are not selected from the parameter called 'report' when the report runs automatically. When the report executes, there is nothing displayed in the parameter selection dropdown box. The user has to click the down arrow to select which reports they want to execute.
Here is the siutation for the ssrs 2008 report:
In a new SSRS 2008 report, I want to be able to allow 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'. I would like the default value to be for all 5 reports to be selected.
All 5 reports will be on the 'main' report. There will be no subreports. Each report will have its own unique matrix and the matrix will be visibile based upon what is selected in the parameter called 'report'.
My question is how can I make the 'default' value for the parameter called 'report' have all the reports selected?
Normally to get all multivalued parameter values selected you create a dataset and run a query against a table. However in this case, there is no table to query. The user just selects what report(s) they want executed.
Here is the code that is used:
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 how all values from the 'report' parameter can be selected automatically when the ssrs report is executed?