I have some reports with drilldown, and I have now been asked to add a breadcrumbs style navigation to the report so the user can access the parent report again without having to use the litte 'back' button.
I was wondering if there was an easy way to do this? Currently I havent been able to find anything on the interwebs.
My solution right now is to pass the parameters for the parent report to its child then have a link back to the report using those parameters, however this really isnt the ideal solution.
Thanks
I have just implemented this using a standard hyperlink and a bit of javascript.
Add a textbox and set the text to something appropriate (e.g. "<< Back")
Set the action to "Go to URL" and set the URL to "javascript: history.go(-1)" (case sensitive).
I also formatted the text in blue and underlined to make it obvious it is a hyperlink
This code just uses javascript link to emulate clicking the Back button, so only goes back one level.
NOTE that this doesn't work in the Preview pane in SSRS, but does work in the browser (if you have javascript enabled).
If you have a number of levels and a rigid structure through which to drill down, you could implement a full breadcrumb trail by having multiple links and replacing -1 with -2 (to go back up 2 levels), -3 (to go back 3 levels) and so on.
You solution is pretty much what I have done. I don't think there is a way to make the parent "remember" the parameters.
I have added Parameter called "SpParentParam" and passed it to Child report. This parameter will have the parameters of the parent report. In my case, the parent report had multiple parameters which can be null and the child report did not know which specific parameters were used in the parent report
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With