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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
hdonald
Creator
Creator

Bookmark ID - always incremented for server Bookmarks ?

Hi All,

Is it possible to set Server Bookmark ID's to always have the same value - or does that only work on Document Bookmarks ?

I'm using the following macro code to remove and re-create a Bookmark with a set Name and ID -

Sub exportBM

'Create Bookmark Name from variable
Set User=ActiveDocument.Variables("vBookMarkName")

'Create Bookmark Nbr from variable
Set Nbr=ActiveDocument.Variables("vBookMarkNbr")

Username = User.GetContent.String
UserNbr = Nbr.GetContent.String

'Get rid of any previous Bookmark of the same name
ActiveDocument.RemoveDocBookmark Username

'Save latest Bookmark with input field values
ActiveDocument.CreateDocBookmark true, Username, UserNbr, 0, , , , , , true
End Sub

Working offline, a document Bookmark will be created Ok with Name and ID that match the variables e.g. "Bob's Bookmark" "ABC1", same result every time.

Working on the server, a server Bookmark is created Ok but only the Name stays the same - the ID increments on every run of the macro - e.g. BM01..BM02...BM03.

After a bit of testing, I notice I'm up to BM103.

Is this how it should work or have I missed some config setting somewhere ?  Is there a limit to the ID number ?,

Regards,

HD

Labels (1)
2 Replies
celindho
Partner - Creator
Partner - Creator

Hi,

Did you find any solution to how you can define the server bookmark's ID in your macro?

BR,

-Christian

hdonald
Creator
Creator
Author

Hi,

No.  Since there seems to be no limit to the number of bookmarks it wasn't a problem in this case,

Regards,

HD