Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
Modernize Your QlikView Deployment webinar, Nov. 3rd. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted
Creator
Creator

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

Regards,

Diwakar

View solution in original post

5 Replies
Highlighted
Creator
Creator

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

Regards,

Diwakar

View solution in original post

Contributor II
Contributor II

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

Highlighted
Creator
Creator

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

Highlighted
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

Highlighted
Creator
Creator

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