Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
diwakarnahata
Creator
Creator

Getting Bookmark Name

Hi All,

Is there any way we can get a Server Bookmark name if we know the ID (on AJAX client)?

Do we have any function available which can be used?

I want to build a table with a list of user bookmarks on Server and a count metric for each bookmark.

Any ideas?

Regards,

Diwakar

1 Solution

Accepted Solutions
diwakarnahata
Creator
Creator
Author

Was able to achieve this using Power Tools by reading the .Shared file..

Regards,

Diwakar

View solution in original post

5 Replies
diwakarnahata
Creator
Creator
Author

Was able to achieve this using Power Tools by reading the .Shared file..

Regards,

Diwakar

zippo_btl
Contributor II
Contributor II

As i know reading macros are not allowed on AJAX, am i wrong? Could u post your macro plz.

diwakarnahata
Creator
Creator
Author

I have created a continuous partial reload to load the Bookmark information extracted from .Shared into the Qlikview app. No macros used.

Let me know if you think there could be a better approach of achieving this.

Regards,

Diwakar

zippo_btl
Contributor II
Contributor II

As i know u can't launch partial reaload in AJAX client, can u plz comment, how did u do that?

In ur case u can use this macro, if u have ur given  array of bookmark ID:


sub run2
bookmarks = ActiveDocument.GetDocBookmarkNames 
dim BM 
for i = lbound(bookmarks) to ubound(bookmarks) 
  if(i=0) then 
  BM="'"&bookmarks(i)&"'"
  else 
BM=BM&",'"&bookmarks(i)&"'"
  end if 
next 
set v = ActiveDocument.GetVariable("vBMName") 
v.SetContent BM,true 

end sub 


P.S. My goal is opposite, i need to get bookmark id by bookmark name

diwakarnahata
Creator
Creator
Author

I did the recurring partial reload from a batch script behind the scenes. So, no role for AJAX client.

The command line allows you to do partial reload as well using "-Rp".

Regards,

Diwakar