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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
hugmarcel
Specialist
Specialist

ImportBookmarks and ExportBookmarks API macros

Hi

has anybody working examples how to use ImportBookmarks and ExportBookmarks API methods in vb macros?

1.) In QVPlugin, I export user bookmarks with command ExportUserBookmarks, creating file UserBookmarks.BM.xml.

2.) When I try to re-import UserBookmarks.BM.xml, funny things start to happen:

     a.) Document bookmarks are suddenly visible as imported server user bookmarks

     b.) Using option "2=Use Import File" "ImportBookmarks <file> 2" does not overwrite the old bookmark, but just duplicate it.

Thx - Marcel

2 Replies
fkeuroglian
Partner - Master
Partner - Master

Hi, you could set all the selection and save the bookmark via macro

ActiveDocument.CreateUserBookmark "NAMEBOOKMARK"

good luck

Fernando

hugmarcel
Specialist
Specialist
Author

Hi

thank you for the answer, but I want to use the export and import api commands. This allows me to e.g. rename selected fields in the xml document and then to reimport the changed xml file.

Marcel