Show Hidden parameters on reports for certain users

May 6, 2016 at 8:00 AM
We currently have some reports with combo boxes that determine the source region of a report. When a standard user runs the report, the combo box is hidden and the region parameter value is automatically filled in by the site before the report runs. Certain users are 'regional directors' so we want them to see the combo box on the report so they can choose a region.

The Microsoft.Reporting.WebForms.ReportParameter object has a visible property but we can't see how we can pass that to the viewer as the viewer builds a url using PrepareViewerUri() but doesn't include the visible property (even if we extend the source to include it).

This is an example of the uri we are sending:
/MvcReportViewer.aspx?_id=a3682135-a8d7-44e4-ac19-76f7752a80bc&_m=Remote&_r=%2fCommon+Reports%2fObjectives+and+Initiatives&_1=-657931&_16=True&_18=True&_34=True&_35=False&_39=880px&LETB=11

The LETB parameter defines the region.

The only other option we have is to create two reports and filter them by folder. Clunky as it requires more maintenance.

Any suggestions?