Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Or
MVP
MVP

Ignore OnOpen trigger when document is opened with bookmark

Dear all,

I'm looking for a way to have QV ignore its OnOpen trigger routine when the document is opened via a bookmark link. Most of our documents have OnOpen triggers that involve Clear All (in case the developer left any selections by accident) and then a selection of a time value (yesterday, current month, etc). Unfortunately, these triggers seem to override any bookmarks that should be activated when the user accesses the document through a link - e.g.

qvp://MyQVServer/MyModel.qvw?bookmark=Server\BM01

Assuming this is intended behavior rather than a bug, is there any way around it?

Specs: QV9 SR2 64 Bit Server 32 Bit clients

TIA,

Or

3 Replies
Not applicable

Were you ever able to resolve this?

Not applicable

If you are open to use macros the below may work running on document open instead of clearall

set bm = ActiveDocument.GetBookmark("BM01")

if bm.Default = true then

          if bm.Bookmark.ApplyLayoutState = false

                    ActiveDocument.ClearAll false

          end if

end if

Kiran.

Not applicable

In my scenario, I don't know what the bookmark would be -- each user (restricted) would create a bookmark.  Is there a way to determine that any bookmark is attempting to be applied?