Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Preventing selections being saved in documents

Hello

Occassionally someone makes a mod to a document and forgets to clear the selections and set the view back to the first page, then saves it. Does anyone know how I can prevent selections being saved in documents and ensure the first page is always shown when the users enter the application?

Thanks!

3 Replies
IAMDV
Master II
Master II

You can use Events & Triggers to Unclear the selections....

erichshiino
Partner - Master
Partner - Master

Hi,

I don't know if it is easy to prevent to save it in the way you want, but you could clear everything and go to the right sheet using triggers:

Go to triggers (Settings ->document properties - > Triggers) and select the 'OnOpen' event.

There, include a clearAll and Layout -> Activate Sheet

Include the sheet ID (you can find the ID on the sheet properties)

Not applicable
Author

Hi,

One solution could be, write a macro to clear all selections and activate your 1st sheet and map this function to "OnOpen" Trigger. So when ever the application is opened, Trigger would be fired and call the marco to clear the selection and activate the 1st sheet.

Your mode code should be something like below

Sub OnOPenDoc

ActiveDocument.ClearAll false

ActiveDocument.ActivateSheetByID "SH01"

End Sub

Hope this may helps you

- SridharYes