I cannot correctly pass the parameters to a SQL Server Reporting server. The report page is displayed, but the Report Viewer Web Part’s parameter prompts are still empty and nothing is run.
The following url takes me to the correct report page, where I can manually select the parameters, then click the "View Report" button and get a report.
http://MyServer/ReportServer?%2fProjects%2fProject_Report
The following are in the report webpage source:
<label for="ctl32_ctl04_ctl03_ddValue"><span>Country</span></label>
and
<option selected="selected" value="0"><Select a Value></option>
<option value="1">Country01Name</option>
<option value="2">Country02Name</option>
<option value="3">Country03NameFirst Country03NameLast</option>
<option value="4">Country04Name</option>
<option value="5">Country05NameFirst Country05NameLast</option>
However, neither of the following work:
using the parameter label:
http://MyServer/ReportServer?%2fProjects%2fProject_Report&rs:Command=Render&rp:Country=Country01Name
using the parameter name directly:
http://MyServer/ReportServer?%2fProjects%2fProject_Report&rs:Command=Render&rp:ctl32_ctl04_ctl03_ddValue=Country01Name
What am I doing wrong?
The following sources did not help me
MSDN URL Access Parameter Reference
MSDN Pass a Report Parameter Within a URL
SO Passing parameter via url to SQL Server Reporting Services
SO SSRS Pass Parameter via URL