Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
dmohanty
Partner - Specialist
Partner - Specialist

Apply Server/User Bookmark on Access Point using Button

Hi All,

My requirement is -

  1. User will create Server level bookmark in Access Point (AJAX mode) in the format 'Bookmark_*' . [* could be anything.]
  2. Now, instead of applying from the regular bookmark object, User want to apply the bookmark using the help of a Button.
  3. What would be approach for this?

I used the Macro - ActiveDocument.RecallUserBookmark "Bookmark_*".


But in the Access Point/ Ajax mode of browsers, it never works. Please suggest some alternatives.

7 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi Dickey,

You can use the "Actions" available on button.

There are Actions available to apply the bookmarks.

https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Button2.htm

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
dmohanty
Partner - Specialist
Partner - Specialist
Author

Hi kaushik.solanki

Thanks.

I am using the Button extensively too.

Using the Macro code in the Action of the button. The thing here is that the piece of Macro code doesn't work in AJAX and is not applying the User Created Bookmark.

Are there any other possible ways to select/apply the User Bookmark. other from the regular bookmark object?

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi dmohanty

Just a question, why are you using macro when same functionality is available in built using the Actions?

Macros will not work on accesspoint.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
dmohanty
Partner - Specialist
Partner - Specialist
Author

kaushik.solanki

You are right. Some macros work and some don't.

To answer your question - the 'Apply Bookmark' action asks for Bookmark ID to enter. I am not sure how to retrieve the Bookmark ID for the User Created bookmark, as it can be dynamic every time. (Guide me if I can get the exact/syntax for the Bookmark ID, so that I can use.)

Just the user will create a Bookmark in the format 'Bookmark_*' and instead of the applying from Regular bookmark object, User has to click the Button, to get that selected/applied.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

I will try something and get back too you.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
dmohanty
Partner - Specialist
Partner - Specialist
Author

HI kaushik.solanki

Thank you for response.

Meanwhile, I was using below two JScript and VBScript - neither of them worked on Browsers.

function ApplyBookmark()

{

var doc = ActiveDocument;

obj = doc.RecallUserBookmark('Default_*');

};



Sub ApplyBookmark

ActiveDocument.RecallUserBookmark "Default_*"

End Sub

dmohanty
Partner - Specialist
Partner - Specialist
Author

Hi kaushik.solanki

Any luck on this or any possible ideas you got?

I was able to retrieve the Shared File data using Power Tools and loading in the Data Model.

But one main challenge is -  I have Input Fields (User Input values) in the Bookmarks too and those are reset every time the Script is reloaded.

So not able to retrieve those User Input Values back again in Data Model, though rest of bookmarked fields in the model are available.

Only the original Bookmark Object has the ability to save and reapply the Input Field values. So was much interested to retrieve the original Bookmark from any Button Actions. (Not getting any other better ideas though)

Regards!