Forum Discussion
Simulate Browser Back Button (history-1)
- 6 years ago
Hi fibaek,
The back button is currently the "Power BI way" that users have to navigate back after cross-report drillthrough.
You can't simulate the window.history.back() operation via JS as R/Python/custom visuals are sandboxed from the main window, so calling that in any of these places will only invoke it on an embedded iframe with no history of its own (basically doing nothing for the end-user). I've tried this previously and just tried it again just to be sure it still doesn't work... it doesn't.
For consistency purposes, I would suggest that this is more of a feature request for cross-report drillthrough in that if a report is invoked via drillthrough then it should detect this and display a button, similar to drillthrough within a report. I just looked and there's already an idea created for it that you can add a vote to (I've added mine).
Regards,
Daniel
That smells like bad UX. Are you sure your users will understand this?
Yes, I believe the users will understand it. All other navigation in the report is handled with buttons, so using the browser back button will be counter-intuitive for the users. The UXers are also completely in line with this. And so are the users, who I have spoken with about it.
Why do you consider this bad UX?
- dm-p6 years agoSuper User
Hi fibaek,
The back button is currently the "Power BI way" that users have to navigate back after cross-report drillthrough.
You can't simulate the window.history.back() operation via JS as R/Python/custom visuals are sandboxed from the main window, so calling that in any of these places will only invoke it on an embedded iframe with no history of its own (basically doing nothing for the end-user). I've tried this previously and just tried it again just to be sure it still doesn't work... it doesn't.
For consistency purposes, I would suggest that this is more of a feature request for cross-report drillthrough in that if a report is invoked via drillthrough then it should detect this and display a button, similar to drillthrough within a report. I just looked and there's already an idea created for it that you can add a vote to (I've added mine).
Regards,
Daniel
- fibaek5 years agoHelper I
Hi,
Thanks for a very elaborate answer and sorry for not getting back to you with a decent reply. I definately voted for the idea as well. It would be a very nice addition.
/Sune