Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
pentaxadmin
Partner - Creator
Partner - Creator

Multi-page Mashup with different app.bookmark.apply for each page

Dear community:

I want to apply different bookmark for each selected page in my mashup. I was able to follow up the instructions on how to obtain the bookmark Ids, but I couldn't find anywhere how do you apply different bookmark per each selected page in your mashup.

http://help.qlik.com/en-US/sense-developer/1.0/Subsystems/Workbench/Content/BuildingWebsites/API/Met...

Any help is greatly appreciated.

Branislav

3 Replies
pentaxadmin
Partner - Creator
Partner - Creator
Author

Is anyone experiencing <app.bookmark.apply> command not to be working in the mashup? Since, I upgraded to June release my app.bookmark.apply stop working.

Thanks,B

s29124141
Partner - Creator II
Partner - Creator II

Yes branislav.bujnak‌. I am experiencing the same. Below is my console snapshot.

BookmarkError.png

pentaxadmin
Partner - Creator
Partner - Creator
Author

I found the fix in one of the other threads, there is a bug in June release that needs to be fixed. You just add one line of code before your apply.bookmark line

app.model.waitForOpen.promise.then( function () { 

app.bookmark.apply("bookmarkid1");

app.getObject('CurrentSelections','CurrentSelections');

//get objects -- inserted here --

app.getObject('id1','appid1');

......

})

here is the original thread I found the solution  Mashup bookmarks failing in QS June 2017?