you use some different approaches:
1) you could go to http://localhost:4848/single and use the Bookmarks you have already in the app in Sense
...so if you would like to be able to create a new bookmark on your Mashup use:
Please have a look at Qlik help for Developers under Mashup API for more referenses:
Hope this helps
Thanks for the reply. However your suggestion doesn't help . The first option works only in the single configuration, the second option is what I have explored but does nothing neither does it give an error. So basically, what I like to do is to provide users with the option of creating a bookmark in a webpage that contains some mashups, just like you can create a bookmark on your browser or as you can create a bookmark on qlik sense main system where you develop the graphs.
So a Qlik bookmark is a reference to a selection state in the app.
A browser bookmark is just a reference to a url.
So they might share the same name but that's about it.
When you call app.bookmark.create(Name, Description) you are in fact creating a Qlik bookmark that mimics the current selection state when you called that function.
To allow people to apply bookmarks you would,
1. Get a list of the available bookmarks. https://help.qlik.com/sense/2.0/en-us/developer/Subsystems/APIs/Content/MashupAPI/Methods/getList-method.htm
2. Paint the list to your page however you like.
3. When a user selects a bookmark you call app.bookmark.apply(BookmarkId) and the bookmark is applied to the app. https://help.qlik.com/sense/2.0/en-us/developer/Subsystems/APIs/Content/MashupAPI/Methods/apply-bookmark-method.htm
If you want to open a mashup and apply a bookmark at initialization it might be a good idea to have that sent in as a query parameter that you parse out and then supply to app.bookmark.apply()
Oh yes, all of our APIs works in both Desktop and Server.
The only difference for the Mashup API is that you will have to change the app name/id once you deploy your Mashup to a server setup.
This section of the documentation contains got information on what you would have to change when you point your mashup to a Server instead of Desktop https://help.qlik.com/sense/2.0/en-us/developer/Subsystems/Mashups/Content/mashups-getting-started.htm
i have a mashup based on an app with a bookmark (base bookmark),
bookmark name :'BM' Description: 'BMTest'
added: app.bookmark.apply('BMTest'); to the mashup js below openApp line
var app = qlik.openApp('a73e2e9a-1cc8-49bc-bd67-7eff21d24cbb', config);
but doesn't apply the bookmark .
tried also with :
got the bookmark id from the single configurator.
works well like below
I have a question for akl how you can paint the list to your page? I am trying to follow what you have said in your post and I am having impediments on this step. Could you help me to solve it?
Thank you very much
I would suggest you open a new thread in the Integration and Extension sub-section of Qlik Community (Qlik Sense - Integration, Extensions and APIs) and describe where you get stuck, which piece of code is not working etc
Hi akl, thanl you for your answer.
The point is that I am stuck in the step 2 that you had described. My knowledge of html and JS is really limited. So if you could provide me an example in order to paint my bookmark list in my page I would be really appreciated.
This is my email: email@example.com
Thank you in advance Alexander.