Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
alice
Contributor II
Contributor II

Previously viewed sheet

Hello everyone.
New here...
how to set up a button that allows you to return to the previously viewed sheet?
Thanks for your help

Labels (1)
1 Solution

Accepted Solutions
alice
Contributor II
Contributor II
Author

Solution found

Insert a button on the sheets with:
* Action: Set the value of a variable (Variable: vPreviousSheet and Value = ObjectID('sheet'))
* Navigation: Access a sheet ('target' sheet)

On the 'target' sheet; insert a button with:
* Navigation: Access a sheet (='$(vPreviousSheet))

It works in my case...

If it can be useful to someone...

View solution in original post

6 Replies
Maria_Halley
Support
Support

@alice 

There is a button object, under charts, this can be configured to do that. 

alice
Contributor II
Contributor II
Author

Thanks @Maria_Halley but i wanted to know how to get the value (id, link...) of the previously viewed sheet...

Ruan_Sasse
Contributor II
Contributor II

In Qlik Sense, you create a new tab and select 'Edit Sheet.' On the left side, there's a 'Charts' option. Click on it, select the 'Button' option, and drag it onto the screen. Select the button, and on the right side, the button's editing options will appear. Under 'Actions and Navigation,' there's a 'Navigation' option, where you'll find several navigability options.

alice
Contributor II
Contributor II
Author

I apologize, I should have been more specific -
indeed, there are options in 'Actions and Navigation' but I don't see the one to go to the 'previously viewed sheet' - I only see the option 'go to the previous sheet'. Hence my idea of ​​recovering this data in a variable but I don't know which function to use

Ruan_Sasse
Contributor II
Contributor II

I understand that this is a more specific task. You would need to use the 'Go to Sheet' option defined by the Sheet ID. However, to get the ID from the URL, you would have to use some extension or mashup. I'm not sure how to do this myself, but perhaps someone else here knows and can provide a solution.

For example, in the URL ...e794/sheet/CLLkk/state/edit, CLLkk is the Sheet ID.

alice
Contributor II
Contributor II
Author

Solution found

Insert a button on the sheets with:
* Action: Set the value of a variable (Variable: vPreviousSheet and Value = ObjectID('sheet'))
* Navigation: Access a sheet ('target' sheet)

On the 'target' sheet; insert a button with:
* Navigation: Access a sheet (='$(vPreviousSheet))

It works in my case...

If it can be useful to someone...