Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

diwakarnahata
Contributor

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
Contributor

Re: Getting Bookmark Name

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

Regards,

Diwakar

5 Replies
diwakarnahata
Contributor

Re: Getting Bookmark Name

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

Regards,

Diwakar

zippo_btl
New Contributor II

Re: Getting Bookmark Name

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

diwakarnahata
Contributor

Re: Getting Bookmark Name

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
New Contributor II

Re: Getting Bookmark Name

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

Highlighted
diwakarnahata
Contributor

Re: Getting Bookmark Name

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