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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Recall BM through macro code

Hello,

I'm creating BM through macro code with button action.

Button 1 action:

sub BM1

            ActiveDocument.RemoveDocBookmark "BM01"

    ActiveDocument.CreateDocBookmark false, "BM01"

end sub


This code is working fine at desktop and access point.

To retrive the created BM i'm using below code in another button.

sub BM2

  ActiveDocument.ClearAll false

  ActiveDocument.RecallDocBookmark "BM01"

end sub

This code is working fine at desktop but not at access point

How can i retrive Created BM at ASP ?

7 Replies
Not applicable
Author

I tried all the ways which i find in API guide. But still my problem is not able to resolve.

Please help me why i'm not able to call created BM through macro code at Access Point.

Not applicable
Author

No one is there to help me on this.

Or my post is not clear to you. Please tell me wt is the wrong i'm doing.

Please tell me whether it is possible or not.

erichshiino
Partner - Master
Partner - Master

Hi,

On Qv Desktop you have document bookmarks and your code works fine there.

When you move to the client-server environment, you need to work with user bookmarks.

Please, check on the API guide, the following methods:

RemoveUserBookmark

CreateUserBookmark

RecallUserBookmark

Hope this helps,

Erich

Not applicable
Author

Thanks a lot to help me..

I tried that code also. Not only dat the code which have in API guide. But still my problem is not resolved.

sub BM1

ActiveDocument.RemoveUserBookmark "MyBookmark"

ActiveDocument.CreateUserBookmark "MyBookmark"

end sub

sub BM2

     ActiveDocument.ClearAll false

     ActiveDocument.RecallUserBookmark "MyBookmark"

end sub

erichshiino
Partner - Master
Partner - Master

Does it work when, on the server, you try to create a bookmark?

Maybe those bookmarks are not enabled. You can check this setting in this post:

http://community.qlik.com/message/121703#121703

Your syntax is similar to the one here: http://community.qlik.com/message/36350#36350

Please, tell us your results

Regards,

Erich

Not applicable
Author

I gone through the links. But no help to me as i've same settings. He is saying that it is bug So, there is not solution for my post.


What you will say?

Not applicable
Author

I can able to create bookmarks but i'm not able retrive the created bookmarks at server using macro code.