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

How to set hidden parameter in a subscription in SSRS 2008

$
0
0
We have an SSRS 2008 (not R2) report, which returns data for 2 different customer class types in a single datatable.  
I have a request to have this report sent via email automatically to the user as an excel attachment.  The user would like to have 2 worksheets in the spreadsheet.  The first worksheet should have the result set including both customer class types and the second worksheet should only contain the result set for one of the 2 class types.
I am able to accomplish getting the 2 worksheets exported to excel, by adding a second data table to the report and setting the pagebreak property on the second table to start and to then set a filter on the second datatable, to only include the 1 class type the user wants.
I can then set up a subscription to automate this on schedule.
The issue that I have, is that I don't want 2 datatables to display when the user is executing the report on-demand via the SSRS web page. To accomplish this, I created a hidden boolean parameter which I use in the hidden expression of the second datatable.  This will allow me to hide the second datatable.  However, I can't seem to figure out how to set the value of this parameter in the Subscription.
Is there a way to set the parameter values of either a hidden or internal parameter in a subscribtion?  Optionally, if I can detect at runtime that the report is being executed by the subscription, then I can set the parameter value accordingly.????

Viewing all articles
Browse latest Browse all 10045

Trending Articles



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