question

YvonneLindberg-8315 avatar image
0 Votes"
YvonneLindberg-8315 asked LukasYu-msft answered

How to use js history.back(1) in Chrome

Hi,
We have just migrated from 2012 to 2016 SSRS reports. So far it was no problems. However When testing the js script to go back to parent report when we opened reports in Chrome. We loose all the choices made at first. This works in IE but not in Chrome. And since IE is not supported after the summer we have been testing in Chrome and Edge and it dosen't work in either of them.

How can we get this function to work when we need to change the browser?
Best Regards,
Yvonne Lindberg

sql-server-reporting-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LukasYu-msft avatar image
0 Votes"
LukasYu-msft answered

Hi,


This is not a particular SSRS issue.

It is a change need to be made for chrome browser. Change the js code to : window.history.go(-1) it should work. You could see the thread here : onclick=“history.go(-1)” not working in Chrome

Reagards,
Lukas

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YvonneLindberg-8315 avatar image
0 Votes"
YvonneLindberg-8315 answered YvonneLindberg-8315 edited

Hi Lukas,
I have read that thread as well and I tried yours suggestion. But the same thing happens as with history.back() I loose the previous parameters chosened from the beginning. Can I change something in Chrome or Edge? Whick setting could I change to make this work?
I have been looking for answers in the other threads as well but haven't found anything that helps with this problem.

Since IE will not be supported I think there must be something i could do for customers to still be able to use their ssrs reports. And it doesn't matter if it is Chrome or Edge. But at the moment I get the same problem in both of the browsers.

Best,
Yvonne

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LukasYu-msft avatar image
0 Votes"
LukasYu-msft answered

Hi Yvonne,

This code runs in browser that doesn't has the capability to remember the parameters.

You would need to use the "go back to parent report" button in report tool bar that discussed in this thread : Keep parameter value when coming back from subreport


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.