title: Reporting Services Cscading Parameter refresh
body: <p>I have googled it a lot and found that usually it cannot be done. I came across one of the hacks here:</p>
  
  <p><a href="http://www.bp-msbi.com/2011/04/ssrs-cascading-parameters-refresh-solved/" rel="noreferrer">http://www.bp-msbi.com/2011/04/ssrs-cascading-parameters-refresh-solved/</a></p>
  
  <p>But its not working for me in ssrs 2005. Just wondering if anyone else tried it in 2005.
  Or is there any other hacks that can be tried.</p>
  
  <p>As per this article the dependent parameter gets refreshed only when its values are invalidated by the selection in the first parameter.  If we can invalidate the dependent parameter every time a parameter changes we will enforce a complete refresh. An easy way to do this is to attach a value such as a GUID obtained with the NEWID() T-SQL function.</p>
  
  <p>So basically we want to introduce a fake parameter in between two real parameters. This fake parameter is supposed to return new values everytime as the storedproc behind it will add a guid to the resultset everytime that proc is called. So it forces complete refresh of the other parameters.</p>
  
  <p>Now the main issue I am facing is :</p>
  
  <p>Setting the default value of this fake parameter.
  For the available values the storedproc behind the fake param runs and it returns data in the format say : result1,result2_GUIDFROMSQL</p>
  
  <p>Now it looks like the same storedproc is called again to set the defult value if i ask it to get the default value from query. But as the storedproc is run again new guid comes and so the old value cannot be found so its not being set as desired. </p>
  
  <p>I just need to figure out a mechanism to pass this guid from introduced param to the next param.</p>
  
  <p>Thats where I am failing.</p>
  
  <p>My issue can simply be replicated by creating a param whose datasource is this querystring. </p>
  
  <pre><code>select getdate() id, @name nid 
  </code></pre>
  
  <p>So in this case how to set a default value for this param.</p>