Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Closing a Document

If a user is in a document and has not made a button click or selection or . . . . we want QlikView to close the document.

Can this be done and how would I do this?

Thanks,

Stephen

5 Replies
disqr_rm
Partner - Specialist III
Partner - Specialist III

Are you keeping this time somewhere in the variable? How long you want to wait and check if user has not clicked on anything.

This can easily be done with combining coupld of macros to record when the document was opened and if any selection status has changed, and then finally calling macro to close the application.

Sub CloseApp
set myDoc = ActiveDocument
myDoc.CloseDoc
End Sub

Hope this helps.

Not applicable
Author

How do I capture if any selection status has changes or do I have to put a macro on each selection box to capture a change?

biester
Specialist
Specialist

I thought the jumping point was to close the document when NO selection or whatsoever was made, or did I miss something?

Rgds,
Joachim

Not applicable
Author

Sorry, should explain better. If a user has not "clicked" on something for 30 minutes.

biester
Specialist
Specialist

Well, I'm afraid there's nothing to achieve with a OnSelect or OnChange or OnXXXX -trigger, because these require an event; but you need a trigger for a NON-event, so to say; that would actually be something for a timer. But when opened in server (or via IE-plugin), I think there should be something like a timeout option - I can't check it right now.

Rgds,
Joachim